Skip to content

Commit 05109e8

Browse files
authored
fix: Use bash to expand glob in NuGet push step (#995)
PowerShell doesn't glob-expand arguments to external commands, so `bin/*.nupkg` was passed to dotnet nuget push literally on windows-latest, which failed to resolve the wildcard itself and errored with "File does not exist (bin/*.nupkg)" even though the package existed.
1 parent 299de05 commit 05109e8

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.github/workflows/release_packages.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ jobs:
4040
user: ${{ secrets.NUGET_USER }}
4141

4242
- name: Push packages to NuGet.org
43+
shell: bash
4344
run: dotnet nuget push bin/*.nupkg --source https://api.nuget.org/v3/index.json
4445
env:
4546
NUGET_API_KEY: ${{ steps.nugetLogin.outputs.NUGET_API_KEY }}

0 commit comments

Comments
 (0)