Update Microsoft Extensions to 10.0.7 #1066
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: Build | |
| on: [push, pull_request] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| # Prepare | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| show-progress: false | |
| - uses: gittools/actions/gitversion/setup@v3.2.1 | |
| with: | |
| versionSpec: '5.12.x' | |
| - uses: gittools/actions/gitversion/execute@v3.2.1 | |
| id: gitversion | |
| - uses: actions/setup-dotnet@v5 | |
| with: | |
| dotnet-version: '10.0.x' | |
| # Build | |
| - name: Build (pre-release) | |
| if: github.ref_type != 'tag' | |
| run: ./build.sh ${{steps.gitversion.outputs.nuGetVersion}}-${{steps.gitversion.outputs.shortSha}} | |
| - name: Build (release) | |
| if: github.ref_type == 'tag' | |
| run: ./build.sh ${{steps.gitversion.outputs.nuGetVersion}} | |
| - name: Report test results | |
| if: always() | |
| uses: dorny/test-reporter@v3 | |
| with: | |
| name: Test Report | |
| reporter: dotnet-trx | |
| path: src/UnitTests/TestResults/*.trx | |
| # Release | |
| - name: Get tag message | |
| if: github.ref_type == 'tag' | |
| id: tag_message | |
| run: | | |
| { | |
| echo "message<<EOF" | |
| git fetch -f origin tag ${{github.ref_name}} | |
| git tag -l ${{github.ref_name}} --format="%(contents)" | |
| echo "EOF" | |
| } >> "$GITHUB_OUTPUT" | |
| - name: Create GitHub Release | |
| if: github.ref_type == 'tag' | |
| uses: softprops/action-gh-release@v3 | |
| with: | |
| body: | | |
| **[Client NuGet package](https://www.nuget.org/packages/OpenServiceBroker.Client/${{steps.gitversion.outputs.nuGetVersion}})** | **[Server NuGet package](https://www.nuget.org/packages/OpenServiceBroker.Server/${{steps.gitversion.outputs.nuGetVersion}})** | |
| ## Changes | |
| ${{steps.tag_message.outputs.message}} | |
| - name: Post-release commit | |
| if: github.ref_type == 'tag' | |
| run: | | |
| git config user.name github-actions | |
| git config user.email github-actions@github.com | |
| git checkout -q master | |
| git commit --all -m "Automatic post-release commit" | |
| git push -q | |
| # Publish | |
| - name: Publish documentation | |
| if: github.ref_type == 'tag' | |
| uses: peaceiris/actions-gh-pages@v4 | |
| with: | |
| github_token: ${{github.token}} | |
| force_orphan: true | |
| publish_dir: artifacts/Documentation | |
| cname: openservicebroker.typedrest.net | |
| - name: Publish packages (GitHub) | |
| if: github.event_name == 'push' && !startsWith(github.ref_name, 'renovate/') | |
| run: dotnet nuget push artifacts/Release/*.nupkg --source https://nuget.pkg.github.com/${{github.repository_owner}}/index.json --api-key ${{github.token}} --no-symbols --skip-duplicate | |
| - name: Publish packages (NuGet.org) | |
| if: github.ref_type == 'tag' | |
| run: dotnet nuget push artifacts/Release/*.nupkg --source nuget.org --api-key ${{secrets.NUGET_API_KEY}} |