Skip to content

Commit eb369db

Browse files
committed
fix: correct PowerShell syntax for NuGet push
1 parent 3d144f4 commit eb369db

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,11 @@ jobs:
8181
if: success() && !contains(github.ref_name, '-') # Skip pre-releases
8282
env:
8383
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
84+
shell: pwsh
8485
run: |
85-
dotnet nuget push "out/*.nupkg" `
86-
--api-key "$env:NUGET_API_KEY" `
87-
--source https://api.nuget.org/v3/index.json `
88-
--skip-duplicate
86+
foreach ($file in Get-ChildItem -Path out -Filter *.nupkg) {
87+
dotnet nuget push $file.FullName `
88+
--api-key "$env:NUGET_API_KEY" `
89+
--source https://api.nuget.org/v3/index.json `
90+
--skip-duplicate
91+
}

0 commit comments

Comments
 (0)