From d11c4dcf46c4b7646502f2366bf90cc4812816b5 Mon Sep 17 00:00:00 2001 From: Daniel Cazzulino Date: Tue, 9 Jul 2024 00:48:41 -0300 Subject: [PATCH] Don't attempt to push to nuget.org without a key --- .github/workflows/publish.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index f4050e4..191f73a 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -40,4 +40,7 @@ jobs: path: '*.binlog' - name: 🚀 nuget + env: + NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }} + if: env.NUGET_API_KEY != '' run: dotnet nuget push ./bin/**/*.nupkg -s https://api.nuget.org/v3/index.json -k ${{secrets.NUGET_API_KEY}} --skip-duplicate