Skip to content

Commit 6f30e77

Browse files
committed
Add NuGet publish step to workflow
1 parent 1b3cde8 commit 6f30e77

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,7 @@ jobs:
4444
**/*.nupkg
4545
**/*.snupkg
4646
generate_release_notes: true
47+
48+
- name: Publish to NuGet
49+
if: startsWith(github.ref, 'refs/tags/')
50+
run: dotnet nuget push "**/*.nupkg" --api-key ${{ secrets.nuget || vars.nuget }} --source https://api.nuget.org/v3/index.json --skip-duplicate

0 commit comments

Comments
 (0)