Fixed release build scripts (#31) #24
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: EnricoMi/publish-unit-test-result-action/windows@v2 | |
| with: | |
| files: 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: Commit Docs | |
| env: | |
| docspush_email: [email protected] | |
| docspush_username: cibuild-telliam | |
| run: .\Push-Docs.ps1 -SkipPush | |
| - name: Push 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: dir .\BuildOutput\NuGet\*.nupkg | .\Push-Nuget.ps1 -apiKey ${{ secrets.NUGETPUSH_ACCESS_TOKEN }} | |
| - name: Create Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| tag_name: ${{ github.ref }} | |
| release_name: Release ${{ github.ref }} | |
| draft: true |