Skip to content

Commit

Permalink
Don't push to nuget.org if draft release
Browse files Browse the repository at this point in the history
This allows testing via the CI feed before publishing.
  • Loading branch information
kzu committed Sep 3, 2024
1 parent 22ac23c commit 5bb0eb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
- name: 🚀 nuget
env:
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
if: env.NUGET_API_KEY != ''
if: ${{ env.NUGET_API_KEY != '' && !github.event.release.draft }}
run: dotnet nuget push ./bin/**/*.nupkg -s https://api.nuget.org/v3/index.json -k ${{secrets.NUGET_API_KEY}} --skip-duplicate

- name: 🚀 sleet
Expand Down

0 comments on commit 5bb0eb2

Please sign in to comment.