Skip to content

Commit fff5ecb

Browse files
authored
Use Cmd as the shell for GitHub Uploads (#56)
1 parent 56db82a commit fff5ecb

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,5 +138,8 @@ jobs:
138138

139139
- name: Publish to NuGet
140140
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
141-
working-directory: ${{ github.workspace }}
142-
run: dotnet nuget push "artifacts/*.nupkg" --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate
141+
shell: pwsh
142+
run: |
143+
Get-ChildItem "${{ github.workspace }}\artifacts\*.nupkg" | ForEach-Object {
144+
dotnet nuget push $_.FullName --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate
145+
}

0 commit comments

Comments
 (0)