Skip to content

Commit d11c4dc

Browse files
authored
Don't attempt to push to nuget.org without a key
1 parent 65f89e0 commit d11c4dc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/publish.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,7 @@ jobs:
4040
path: '*.binlog'
4141

4242
- name: 🚀 nuget
43+
env:
44+
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
45+
if: env.NUGET_API_KEY != ''
4346
run: dotnet nuget push ./bin/**/*.nupkg -s https://api.nuget.org/v3/index.json -k ${{secrets.NUGET_API_KEY}} --skip-duplicate

0 commit comments

Comments
 (0)