Skip to content

Commit c23d197

Browse files
authored
Add publish to nuget.org step
1 parent 846def6 commit c23d197

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/dotnetcore.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,8 @@ jobs:
4848

4949
- name: Publish to GitHub Packages
5050
if: github.ref == 'refs/heads/master'
51-
run: dotnet nuget push *.nupkg
51+
run: dotnet nuget push ${{ env.PackageOutputPath }}/*.nupkg
52+
53+
- name: Publish to nuget.org
54+
if: github.ref == 'refs/heads/master'
55+
run: dotnet nuget push ${{ env.PackageOutputPath }}/*.nupkg --source nuget.org -k ${{ secrets.NUGET_TOKEN }}

0 commit comments

Comments
 (0)