Skip to content

Commit 194b290

Browse files
committed
Don't push to nuget.org if draft release
This allows testing via the CI feed before publishing.
1 parent a3f183e commit 194b290

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
- name: 🚀 nuget
4545
env:
4646
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
47-
if: env.NUGET_API_KEY != ''
47+
if: ${{ env.NUGET_API_KEY != '' && !github.event.release.draft }}
4848
run: dotnet nuget push ./bin/**/*.nupkg -s https://api.nuget.org/v3/index.json -k ${{secrets.NUGET_API_KEY}} --skip-duplicate
4949

5050
- name: 🚀 sleet

0 commit comments

Comments
 (0)