File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -86,15 +86,22 @@ jobs:
8686 environment :
8787 name : ' NuGet'
8888 url : https://www.nuget.org/packages/Octokit.Webhooks
89+ permissions :
90+ id-token : write
8991 runs-on : windows-latest
9092 steps :
9193 - name : ' Download artifact'
9294 uses : actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
9395 with :
9496 name : ' windows-latest'
97+ - name : ' NuGet login'
98+ uses : NuGet/login@269a1094e6b6e88a3856400d7171adf9b7a546f7 # v1.1.0
99+ id : nuget-login
100+ with :
101+ user : GitHub
95102 - name : ' Dotnet NuGet Push'
96103 run : |
97104 Get-ChildItem .\ -Filter *.nupkg |
98105 Where-Object { !$_.Name.Contains('preview') } |
99- ForEach-Object { dotnet nuget push $_ --source https://api.nuget.org/v3/index.json --skip-duplicate --api-key ${{secrets .NUGET_API_KEY}} }
106+ ForEach-Object { dotnet nuget push $_ --source https://api.nuget.org/v3/index.json --skip-duplicate --api-key ${{steps.nuget-login.outputs .NUGET_API_KEY}} }
100107 shell : pwsh
You can’t perform that action at this time.
0 commit comments