Skip to content

Commit 11cae11

Browse files
committed
Remove NuGet push diagnostics
1 parent 1743bc3 commit 11cae11

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,8 @@ jobs:
7979
- name: Push to NuGet.org
8080
shell: pwsh
8181
run: |
82-
$key = "${{ secrets.NUGET_API_KEY }}"
83-
Write-Host "API key length: $($key.Length)"
84-
Write-Host "API key first 4 chars: $($key.Substring(0, [Math]::Min(4, $key.Length)))..."
85-
$pkg = Get-ChildItem artifacts/*.nupkg | Select-Object -First 1
86-
Write-Host "Package: $($pkg.Name) ($($pkg.Length) bytes)"
87-
dotnet nuget push $pkg.FullName `
88-
--api-key $key `
82+
dotnet nuget push artifacts/*.nupkg `
83+
--api-key ${{ secrets.NUGET_API_KEY }} `
8984
--source https://api.nuget.org/v3/index.json `
9085
--skip-duplicate
9186

0 commit comments

Comments
 (0)