File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed
Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change 1010 permissions :
1111 packages : write
1212 contents : read
13- id-token : write # Explicitly grant write permission for the OIDC token
1413 steps :
1514 - uses : actions/checkout@v5
1615 - uses : actions/setup-dotnet@v4
2625 -p:VersionSuffix="preview.${{ github.run_number }}"
2726 - name : Pack release
2827 if : " !github.event.release.prerelease"
29- run : dotnet pack --configuration Release --output ./nupkg
30- # Get a short-lived NuGet API key
31- - name : NuGet login (OIDC → temp API key)
32- uses : NuGet/login@v1
33- id : login
34- with :
35- user : ${{ secrets.NUGET_USER }}
36-
28+ run : dotnet pack --configuration Release --output ./nupkg
3729 - name : Publish packages to NuGet
38- run : dotnet nuget push "./nupkg/*.nupkg" --api-key ${{steps.login.outputs. NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json
30+ run : dotnet nuget push "./nupkg/*.nupkg" --api-key ${{ secrets. NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json
You can’t perform that action at this time.
0 commit comments