Skip to content

Commit 1743bc3

Browse files
committed
Add NuGet push diagnostics
1 parent ffcf619 commit 1743bc3

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,13 @@ jobs:
7979
- name: Push to NuGet.org
8080
shell: pwsh
8181
run: |
82-
dotnet nuget push artifacts/*.nupkg `
83-
--api-key ${{ secrets.NUGET_API_KEY }} `
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 `
8489
--source https://api.nuget.org/v3/index.json `
8590
--skip-duplicate
8691

0 commit comments

Comments
 (0)