File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 1212jobs :
1313 release :
1414 name : release
15+ permissions :
16+ contents : read
17+ id-token : write # for OIDC token
1518 runs-on : ubuntu-latest
1619 steps :
1720 - uses : actions/checkout@v4
2023 with :
2124 dotnet-version : ${{ env.DOTNET_VERSION }}
2225
26+ - name : NuGet Login
27+ uses : NuGet/login@v1
28+ id : login
29+ with :
30+ user : nenoNaninu
31+
2332 - name : Get version from git tag
2433 run : echo "RELEASE_VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV
2534
4150 path : ${{ github.workspace }}/artifacts
4251
4352 - name : dotnet nuget push
44- run : dotnet nuget push ${{ github.workspace }}/artifacts/*.nupkg --skip-duplicate -k ${{ secrets .NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json
53+ run : dotnet nuget push ${{ github.workspace }}/artifacts/*.nupkg --skip-duplicate -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