Skip to content

Commit 6af09f0

Browse files
committed
Remove obsolete API key stuff
1 parent 49e4a8d commit 6af09f0

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,6 @@ jobs:
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

0 commit comments

Comments
 (0)