fix: handle :MISSION:SAVED: async callback from extension (#114) #10
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: Documentation | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - 'addons/**' | |
| - 'NaturalDocs.Project/**' | |
| - '.github/workflows/docs.yml' | |
| permissions: | |
| pages: write | |
| id-token: write | |
| concurrency: | |
| group: pages | |
| cancel-in-progress: true | |
| jobs: | |
| build-and-deploy: | |
| runs-on: ubuntu-latest | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| - name: Install Natural Docs | |
| run: | | |
| curl -sL "https://www.naturaldocs.org/download/natural_docs/2.4/Natural_Docs_2.4_Development_Release_2.Linux.x64.zip" -o nd.zip | |
| unzip -q nd.zip -d naturaldocs | |
| chmod +x "naturaldocs/Natural Docs/NaturalDocs" | |
| - name: Install custom styles | |
| run: cp -r NaturalDocs.Project/Styles/* "naturaldocs/Natural Docs/Styles/" | |
| - name: Generate documentation | |
| run: | | |
| mkdir -p docs-output | |
| "naturaldocs/Natural Docs/NaturalDocs" NaturalDocs.Project --rebuild | |
| - name: Upload Pages artifact | |
| uses: actions/upload-pages-artifact@v4 | |
| with: | |
| path: docs-output | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v5 |