changelog for v 0.2.11 #4
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 master | |
| on: | |
| push: | |
| pull_request: | |
| branches: [ master ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v3 | |
| with: | |
| dotnet-version: | | |
| 9.0.x | |
| 8.0.x | |
| - name: Restore dependencies | |
| run: dotnet tool restore; dotnet restore | |
| - name: Build and test | |
| run: | | |
| dotnet build --no-restore | |
| dotnet test --no-build --verbosity normal | |
| - name : Pack and Publish if tag present | |
| if: startsWith(github.ref, 'refs/tags/v') | |
| run: | | |
| dotnet pack -c Release -o nuget-packages --no-build | |
| dotnet nuget push nuget-packages/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate |