Skip to content

Commit 6fa0df3

Browse files
committed
Update build-and-deploy.yml
1 parent f84d78e commit 6fa0df3

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/build-and-deploy.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Build and Deploy
22

3-
on: [push, pull_request]
3+
on: [push, pull_request, release]
44

55
jobs:
66
windows-builder:
@@ -117,6 +117,12 @@ jobs:
117117
name: nuget
118118
path: packager/nupkgs
119119

120+
- name: Push NuGet package to NuGet.org
121+
if: github.event_name == 'release' && github.event.action == 'published'
122+
run: |
123+
cd packager/nupkgs
124+
dotnet nuget push --api-key ${{ secretes.NUGET_KEY }}
125+
120126
- name: Struct of folder
121127
run: |
122128
cd packager

0 commit comments

Comments
 (0)