Skip to content

Commit b040d0a

Browse files
committed
Make CI to publish NuGet package to NuGet.org on release
1 parent 9017616 commit b040d0a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,11 +363,15 @@ jobs:
363363
SOURCE_DIR: 'versioned-publish'
364364
DEST_DIR: 'GmodNETStorage/storage'
365365

366-
- name: Upload API nuget package
366+
- name: Upload API nuget package to Azure DevOps
367367
run: |
368368
dotnet nuget update source gmodnet-packages --username CI --password ${{ secrets.AZURE_DEVOPS_ARTIFACTS_PAT }} --store-password-in-clear-text
369369
dotnet nuget push nuget-publish/**.nupkg --source gmodnet-packages --api-key az --skip-duplicate
370370
371+
- name: Upload NuGet package to NuGet.org
372+
if: ${{ github.event_name == 'release' }}
373+
run: dotnet nuget push nuget-publish/**.nupkg --source nuget --api-key ${{ secrets.NUGET_API_KEY }} --skip-duplicate
374+
371375
- name: Restore local dotnet tools
372376
run: |
373377
cd csx

0 commit comments

Comments
 (0)