Bump version for release (v20.1.9-beta) #6
Workflow file for this run
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: Release-Build | |
| permissions: | |
| contents: write | |
| pages: write | |
| packages: write | |
| actions: read | |
| defaults: | |
| run: | |
| shell: pwsh | |
| # only comes into play on a PUSH of a tag to the repository | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| env: | |
| DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1 | |
| DOTNET_CLI_TELEMETRY_OPTOUT: 1 | |
| DOTNET_NOLOGO: true | |
| jobs: | |
| build_target: | |
| runs-on: windows-latest | |
| steps: | |
| - name: Checkout Repo | |
| uses: actions/checkout@v2 | |
| with: | |
| persist-credentials: false | |
| fetch-depth: 0 | |
| # .NET SDK 10 is not normally included in GH machine builds | |
| - name: Setup .NET SDK | |
| uses: actions/setup-dotnet@v5 | |
| with: | |
| dotnet-version: '10.0.x' | |
| - name: Build Source | |
| run: .\Build-Source.ps1 -FullInit -ForceClean | |
| - name: Run Tests | |
| run: ./Invoke-Tests.ps1 | |
| - name: Publish Test Results | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: test-results | |
| path: BuildOutput/Test-Results/*.trx | |
| - name: Publish Artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: nuget-packages | |
| path: .\BuildOutput\Nuget | |
| - name: Build Docs | |
| run: ./Build-Docs.ps1 | |
| - name: Commit Docs | |
| env: | |
| docspush_email: 32618965+cibuild-telliam@users.noreply.github.com | |
| docspush_username: cibuild-telliam | |
| run: .\Commit-Docs.ps1 | |
| - name: Publish Docs | |
| uses: ad-m/github-push-action@master | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| directory: .\BuildOutput\docs | |
| branch: gh-pages | |
| - name: Show asset names | |
| run: dir BuildOutput/Nuget | |
| - name: Publish packages to NuGet.org | |
| run: | | |
| if( [string]::IsNullOrWhiteSpace('${{secrets.NUGETPUSH_ACCESS_TOKEN}}')) | |
| { | |
| throw "'NUGETPUSH_ACCESS_TOKEN' does not exist, is empty or all whitespace!" | |
| } | |
| dotnet nuget push .\BuildOutput\NuGet\*.nupkg --api-key '${{secrets.NUGETPUSH_ACCESS_TOKEN}}' --source 'https://api.nuget.org/v3/index.json' --skip-duplicate | |
| - name: Create Release | |
| if: (!cancelled()) | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| draft: true | |
| files: | | |
| BuildOutput/NuGet/*.nupkg | |
| BuildOutput/NuGet/*.snupkg | |