Skip to content

Commit fc36030

Browse files
committed
Update release.yml
Use nuget api token in release action
1 parent 609a1db commit fc36030

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,6 @@ jobs:
3535
artifacts/*.snupkg
3636
3737
- name: Publish to nuget.org
38-
run: |
39-
nuget push artifacts\*.nupkg -Source 'https://api.nuget.org/v3/index.json' -ApiKey ${{ secrets.NUGET_API_KEY }}
38+
env:
39+
NUGET_API_KEY: ${{ secrets.GITHUB_TOKEN }}
40+
run: nuget push artifacts\*.nupkg -Source 'https://api.nuget.org/v3/index.json' -ApiKey $NUGET_API_KEY

0 commit comments

Comments
 (0)