File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3636 with :
3737 name : NuGet Packages
3838 path : artifacts/NuGet/Release
39-
39+
40+ # Get a short-lived NuGet API key
41+ - name : NuGet login (OIDC → temp API key)
42+ uses : NuGet/login@v1
43+ id : login
44+ with :
45+ user : ${{ secrets.NUGET_USER }}
46+
4047 - name : Push to NuGet
4148 run : |
42- dotnet nuget push artifacts\NuGet\Release\*.nupkg -k ${{ secrets. NUGET_API_KEY }} -s https://nuget.org
43- dotnet nuget push artifacts\NuGet\Release\*.snupkg -k ${{ secrets. NUGET_API_KEY }} -s https://nuget.org
49+ dotnet nuget push artifacts\NuGet\Release\*.nupkg --api-key ${{steps.login.outputs. NUGET_API_KEY}} --source https://api. nuget.org/v3/index.json
50+ dotnet nuget push artifacts\NuGet\Release\*.snupkg --api-key ${{steps.login.outputs. NUGET_API_KEY}} --source https://api. nuget.org/v3/index.json
You can’t perform that action at this time.
0 commit comments