Migrate to LANCommander base image with hook-based install #4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Publish Documentation Updates | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - "Documentation/**" | |
| - "**/*.md" | |
| - "**/*.mdx" | |
| 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}"'" | |
| } | |
| }' |