Build Stride Docs - Test Build #7
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: Build Stride Docs - Test Build | |
| env: | |
| COMMON_SETTINGS_PATH: en/docfx.json | |
| VERSION: "2.0.0.${{ github.run_number }}" | |
| DOCS_PATH: stride-docs | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| skipPdfBuilding: | |
| description: Skip PDF building | |
| required: true | |
| default: true | |
| type: boolean | |
| skipApiBuilding: | |
| description: Skip API building | |
| required: true | |
| default: true | |
| type: boolean | |
| strideBranch: | |
| description: Stride branch to checkout | |
| required: true | |
| default: master | |
| type: string | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| name: Build documentation | |
| runs-on: windows-2025-vs2026 | |
| steps: | |
| - name: Checkout Stride Docs | |
| uses: actions/checkout@v6 | |
| with: | |
| path: ${{ env.DOCS_PATH }} | |
| lfs: true | |
| - name: Run Global Setup | |
| id: setup | |
| uses: ./stride-docs/.github/actions/setup-stride | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| skip-pdf-building: ${{ inputs.skipPdfBuilding }} | |
| skip-api-building: ${{ inputs.skipApiBuilding }} | |
| stride-branch: ${{ inputs.strideBranch }} | |
| - name: Upload artifact for deployment job | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: DocFX-app | |
| path: ./${{ env.DOCS_PATH }}/_site |