File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change 1414
1515permissions :
1616 contents : read
17+ id-token : write
1718
1819jobs :
1920 nuget :
2021 runs-on : ubuntu-latest
2122
23+ permissions :
24+ id-token : write
25+
2226 steps :
2327 -
2428 name : Checkout
3135 -
3236 name : Unshallow
3337 run : git fetch --prune --unshallow
38+
39+ -
40+ name : NuGet login
41+ uses : NuGet/login@v1
42+ id : nuget-login
43+ with :
44+ user : ${{ secrets.NUGET_USER }}
45+
3446 -
3547 name : Create and push NuGet package
3648 run : |
3749 dotnet pack -c Release -o nuget -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg
38- dotnet nuget push **/*.nupkg --api-key ${{ secrets .NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate
50+ dotnet nuget push **/*.nupkg --api-key ${{ steps.nuget-login.outputs .NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate
You can’t perform that action at this time.
0 commit comments