Skip to content

Commit

Permalink
Merge pull request #11 from haefele/patch-2
Browse files Browse the repository at this point in the history
In publish.yml only run nuget-push on the main branch
  • Loading branch information
StefanKoell authored Dec 2, 2024
2 parents ba79314 + 34bf197 commit 26ce1db
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 26ce1db

Please sign in to comment.