From 5bb0eb200dcc191b814e20a937a0d03355958289 Mon Sep 17 00:00:00 2001 From: Daniel Cazzulino Date: Mon, 2 Sep 2024 23:55:05 -0300 Subject: [PATCH] Don't push to nuget.org if draft release This allows testing via the CI feed before publishing. --- .github/workflows/publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index a4be3ad59..5d751d65e 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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