Skip to content

Commit aea7ac6

Browse files
authored
Update dotnet.yml
1 parent 0124ea8 commit aea7ac6

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/dotnet.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ jobs:
3333
- name: Pack
3434
run: dotnet pack $PROJ_PATH --no-build --include-symbols -o out -c release -p:version=${{ steps.bump_version.outputs.new_version }}
3535
- name: Push package
36-
run: dotnet nuget push out/$PROJ_ID.${{ steps.bump_version.outputs.new_version }}.nupkg -s nuget.org
36+
env:
37+
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
38+
run: dotnet nuget push out/$PROJ_ID.${{ steps.bump_version.outputs.new_version }}.nupkg -s nuget.org -k $NUGET_API_KEY
3739
- name: Tag version
3840
id: tag_version
3941
uses: mathieudutour/github-tag-action@v5.3

0 commit comments

Comments
 (0)