fix: add Unity type stubs for DocFX v2 compilation #35
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: Example documentation | |
| on: | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| jobs: | |
| # Build the documentation | |
| build: | |
| runs-on: ubuntu-latest # DocFX v2+ is cross-platform; no longer requires Windows | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| # with: | |
| # submodules: true | |
| - name: Install DocFX | |
| run: dotnet tool install -g docfx --version 2.77.0 | |
| - name: Use README.md as index.md | |
| run: cp README.md Documentation/index.md | |
| - name: Build | |
| run: docfx Documentation/docfx.json | |
| # Upload the generated documentation | |
| - name: Upload site artifact | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: _site # Must equal the 'build.dest' value in docfx.json | |
| # Deploy the generated documentation to GitHub Pages | |
| deploy: | |
| needs: build | |
| runs-on: ubuntu-latest | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| steps: | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 |