Fixed delist script #72
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 and publish v2 API docs | |
| on: | |
| push: | |
| branches: [v2_develop] | |
| permissions: | |
| id-token: write | |
| pages: write | |
| jobs: | |
| deploy: | |
| name: Build and Deploy v2 API docs to github-pages ${{ github.ref_name }} | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| runs-on: windows-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup .NET Core | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: 10.x | |
| dotnet-quality: 'ga' | |
| - name: Restore dependencies | |
| run: dotnet restore | |
| - name: Build Terminal.Gui Release | |
| run: dotnet build Terminal.Gui/Terminal.Gui.csproj --configuration Release --no-restore | |
| - name: DocFX Build | |
| working-directory: docfx | |
| run: | | |
| dotnet tool install -g docfx | |
| $env:DOCFX_SOURCE_BRANCH_NAME="${{ github.ref_name }}" | |
| docfx metadata | |
| docfx build | |
| continue-on-error: false | |
| - name: Setup Pages | |
| uses: actions/configure-pages@v5 | |
| - name: Upload artifact | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: docfx/_site | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} |