File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed
Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change 2525 - name : ⚙️ Initialization
2626 shell : pwsh
2727 run : |
28- if ('${{ secrets.NUGET_API_KEY }}') {
29- Write-Host "NUGET_API_KEY secret detected. NuGet packages will be pushed."
30- echo "NUGET_API_KEY_DEFINED=true" >> $env:GITHUB_ENV
31- }
32-
3328 if ('${{ secrets.NPM_API_KEY }}') {
3429 Write-Host "NPM_API_KEY secret detected. NPM packages will be pushed."
3530 echo "NPM_API_KEY_DEFINED=true" >> $env:GITHUB_ENV
@@ -115,16 +110,14 @@ jobs:
115110 gh release -R ${{ github.repository }} upload "${{ github.ref_name }}" $_.FullName
116111 }
117112
118- - name : 🚀 NuGet login for push
113+ - name : 🪪 Authorize NuGet package push
119114 uses : NuGet/login@v1
120115 id : nuget-login
121116 with :
122117 user : ${{ secrets.NUGET_USER }}
123- if : ${{ env.NUGET_API_KEY_DEFINED == 'true' }}
124118
125119 - name : 🚀 Push NuGet packages
126120 run : dotnet nuget push ${{ runner.temp }}\deployables\*.nupkg --source https://api.nuget.org/v3/index.json -k '${{ steps.nuget-login.outputs.NUGET_API_KEY }}'
127- if : ${{ env.NUGET_API_KEY_DEFINED == 'true' }}
128121
129122 - name : 🚀 Push NPM packages
130123 shell : pwsh
You can’t perform that action at this time.
0 commit comments