Skip to content

Commit f644fd5

Browse files
authored
use new nuget trusted auth to always get a fresh token (#1405)
1 parent b9991fa commit f644fd5

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,12 @@ jobs:
4444
token: ${{ secrets.GITHUB_TOKEN }}
4545
body: ${{ steps.changelog_reader.outputs.log_entry }}
4646

47+
# Get a short-lived NuGet API key
48+
- name: NuGet login
49+
uses: NuGet/login@v1
50+
id: login
51+
with:
52+
user: ${{secrets.NUGET_USER}}
53+
4754
- name: Push packages
48-
run: dotnet nuget push bin/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_KEY }}
55+
run: dotnet nuget push bin/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{steps.login.outputs.NUGET_API_KEY}}

0 commit comments

Comments
 (0)