Skip to content

Commit 8d22b22

Browse files
teddclaude
andcommitted
fix(ci): resolve nupkg glob explicitly before pushing to NuGet
pwsh doesn't expand wildcards for native-command arguments, so 'dotnet nuget push out/*.nupkg' received the literal string 'out/*.nupkg' and failed with 'File does not exist' — none of the 11 successfully packed .nupkg files were pushed. Enumerate the directory with Get-ChildItem and push each package path explicitly, matching the Pack step's existing loop idiom. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent 0e7638e commit 8d22b22

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/deploy.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,4 +65,10 @@ jobs:
6565
}
6666
6767
- name: Push to NuGet
68-
run: dotnet nuget push out/*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json --skip-duplicate
68+
shell: pwsh
69+
run: |
70+
$packages = Get-ChildItem -Path out -Filter *.nupkg
71+
foreach ($pkg in $packages) {
72+
dotnet nuget push $pkg.FullName -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json --skip-duplicate
73+
if ($LASTEXITCODE -ne 0) { exit 1 }
74+
}

0 commit comments

Comments
 (0)