VersionBump (#67) #38
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 | |
| - name: Build Source | |
| run: .\Build-All.ps1 | |
| - 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: Show asset names | |
| run: dir BuildOutput/Nuget | |
| - name: Build Docs | |
| run: ./Build-Docs.ps1 | |
| - name: Commit Docs | |
| env: | |
| docspush_email: [email protected] | |
| 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: 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 | |