File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 1010 name : Publish
1111 runs-on : ubuntu-22.04
1212 if : " startsWith(github.event.head_commit.message, 'chore: release')"
13+ permissions :
14+ id-token : write # enable GitHub OIDC token issuance for this job
1315 steps :
1416 - uses : actions/checkout@v6
1517
2123 - name : Create Nugget package
2224 run : dotnet pack --configuration Release --output nugget
2325
26+ - name : NuGet login (OIDC → temp API key)
27+ uses : NuGet/login@v1
28+ id : login
29+ with :
30+ user : ${{ secrets.NUGET_USER }}
31+
2432 - name : Publish NuGet package
25- run : dotnet nuget push "nugget/*.nupkg" --api-key "${{ secrets.NUGET_APIKEY }}" --source https://api.nuget.org/v3/index.json --skip-duplicate
33+ run : dotnet nuget push "nugget/*.nupkg" --api-key "${{ steps.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