Skip to content

Commit

Permalink
Add build step to release flow
Browse files Browse the repository at this point in the history
  • Loading branch information
acupofjose committed Jan 3, 2024
1 parent e6073a4 commit 6d57a88
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,14 @@ jobs:
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 --configuration Release
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 }}

0 comments on commit 6d57a88

Please sign in to comment.