We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3617180 commit 2cfd39eCopy full SHA for 2cfd39e
.github/workflows/publish.yml
@@ -1,5 +1,9 @@
1
name: Release
2
3
+permissions:
4
+ id-token: write
5
+ contents: write
6
+
7
on:
8
push:
9
tags:
@@ -32,5 +36,10 @@ jobs:
32
36
artifacts: packages/*.nupkg
33
37
token: ${{ secrets.GITHUB_TOKEN }}
34
38
generateReleaseNotes: true
39
+ - name: NuGet login
40
+ uses: NuGet/login@v1
41
+ id: login
42
+ with:
43
+ user: ${{secrets.NUGET_USER}}
35
44
- name: Push packages
- run: dotnet nuget push packages/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_KEY }}
45
+ run: dotnet nuget push packages/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{steps.login.outputs.NUGET_API_KEY}}
0 commit comments