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 6969 runs-on : ubuntu-latest
7070 needs : build
7171 if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
72+ permissions :
73+ id-token : write # Required for Trusted Publishing (OIDC token generation)
7274
7375 steps :
7476 - name : Install .NET 8.0
8284 name : nuget-package
8385 path : ./packages
8486
87+ # Authenticate to NuGet.org using Trusted Publishing (OIDC)
88+ - name : Login to NuGet
89+ uses : NuGet/login@v1
90+ with :
91+ user : ${{ secrets.NUGET_USERNAME }}
92+
8593 # Only push tagged builds to NuGet. These will be production or release candidates.
8694 - name : Publish to NuGet
87- run : dotnet nuget push ./packages/SaturdayMP.XPlugins.iOS.BEMCheckBox.${{ needs.build.outputs.version }}.nupkg -k ${{ secrets.NUGET_API_KEY }} - -skip-duplicate --no-symbols -s https://api.nuget.org/v3/index.json
95+ run : dotnet nuget push ./packages/SaturdayMP.XPlugins.iOS.BEMCheckBox.${{ needs.build.outputs.version }}.nupkg --skip-duplicate --no-symbols -s https://api.nuget.org/v3/index.json
You can’t perform that action at this time.
0 commit comments