chore(ci): upgrade setup-dotnet action to v5 in dotnet-release and do… #952
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: .NET Release | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - next | |
| jobs: | |
| semantic-release: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: bufbuild/buf-setup-action@v1 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| - uses: extractions/setup-just@v4 | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v5 | |
| with: | |
| dotnet-version: 8.x | |
| - name: Setup dotnet tools | |
| run: dotnet tool restore | |
| - name: Generate gRPC code | |
| run: just generate-grpc | |
| - name: Semantic Release | |
| uses: cycjimmy/semantic-release-action@v6 | |
| with: | |
| semantic_version: 19 | |
| extra_plugins: | | |
| semantic-release-net | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| NUGET_TOKEN: ${{ secrets.NUGET_API_KEY }} |