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 99
1010jobs :
1111 publish :
12+ permissions :
13+ id-token : write
1214 runs-on : ubuntu-latest
1315 steps :
1416 - uses : actions/checkout@v5
1820 with :
1921 dotnet-version : ${{ env.DOTNET_VERSION }}
2022
23+ - name : NuGet login (OIDC → temp API key)
24+ uses : NuGet/login@v1
25+ id : login
26+ with :
27+ user : shibayan
28+
2129 - name : Setup Version
2230 id : setup_version
2331 run : echo "VERSION=${GITHUB_REF/refs\/tags\/v/}" >> $GITHUB_OUTPUT
2634 run : dotnet pack Sharprompt/Sharprompt.csproj -c Release -o ./dist -p:Version=${{ steps.setup_version.outputs.VERSION }}
2735
2836 - name : Publish
29- run : dotnet nuget push dist/*.nupkg -k ${{ secrets .NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json
37+ run : dotnet nuget push dist/*.nupkg -k ${{ steps.login.outputs .NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json
You can’t perform that action at this time.
0 commit comments