28 lines
829 B
YAML
28 lines
829 B
YAML
name: Publish Documentation Updates
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
paths:
|
|
- "LANCommander.Documentation/**"
|
|
|
|
jobs:
|
|
dispatch:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Dispatch to Docusaurus repo
|
|
env:
|
|
DISPATCH_TOKEN: ${{ secrets.DOCUMENTATION_DISPATCH_TOKEN }}
|
|
run: |
|
|
curl -sS -X POST \
|
|
-H "Accept: application/vnd.github+json" \
|
|
-H "Authorization: Bearer ${DISPATCH_TOKEN}" \
|
|
https://api.github.com/repos/LANCommander/LANCommander.Documentation/dispatches \
|
|
-d '{
|
|
"event_type": "docs-sources-updated",
|
|
"client_payload": {
|
|
"repo": "'"${GITHUB_REPOSITORY}"'",
|
|
"sha": "'"${GITHUB_SHA}"'",
|
|
"ref": "'"${GITHUB_REF}"'"
|
|
}
|
|
}'
|