Version bump to 4.0.3 #64
This file contains 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: Publish NuGet Package | |
on: | |
push: | |
branches: | |
- release/* # Default release branch | |
jobs: | |
publish: | |
name: build, pack & publish | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 8.x | |
- name: Wait for tests to succeed | |
uses: lewagon/wait-on-check-action@v1.3.1 | |
with: | |
ref: ${{ github.ref }} | |
check-name: build-and-test | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
wait-interval: 10 | |
- name: Restore dependencies | |
run: dotnet restore | |
- name: Build | |
run: dotnet build ./Postgrest/Postgrest.csproj --configuration Release --no-restore | |
- name: Generate package | |
run: dotnet pack ./Postgrest/Postgrest.csproj --configuration Release | |
- name: Publish on version change | |
run: dotnet nuget push "**/*.nupkg" --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }} |