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 publish :
1010 name : 📦 Publish nuget library
1111 runs-on : ubuntu-latest
12+ permissions :
13+ id-token : write
1214 steps :
1315 - name : 📦 Download Artifact
1416 run : gh release download ${{ github.ref_name }} --repo ${{ github.repository }} --pattern '*.nupkg'
1517 env :
1618 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
1719
20+ - name : 🔐 NuGet login
21+ uses : NuGet/login@v1
22+ id : login
23+ with :
24+ user : ${{ secrets.NUGET_USER }}
25+
1826 - name : ✈️ Push Nuget
19- run : dotnet nuget push *.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets .NUGET_API_KEY }} --skip-duplicate
27+ run : dotnet nuget push *.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ steps.login.outputs .NUGET_API_KEY }} --skip-duplicate
You can’t perform that action at this time.
0 commit comments