Skip to content

Commit

Permalink
In publish.yml only run nuget-push on the main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
haefele authored Nov 29, 2024
1 parent 7b3a583 commit 34bf197
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ jobs:

# Push nuget package to nuget.org
- name: nuget push
if: github.ref == 'refs/heads/main'
run: dotnet nuget push *.nupkg -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_API_KEY }} --skip-duplicate
env:
Configuration: ${{ matrix.configuration }}

0 comments on commit 34bf197

Please sign in to comment.