Skip to content

Commit 7bc96d1

Browse files
fix nuget push (#83)
1 parent 36a4399 commit 7bc96d1

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/Windows_release.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,13 @@ jobs:
4343
4444
4545
- name: Push Packages
46-
run: dotnet nuget push "output/*.nupkg" -k ${{ secrets.NUGET_KEY }} -s https://api.nuget.org/v3/index.json
46+
shell: pwsh
47+
run: |
48+
$ErrorActionPreference = "Stop" # Makes the script stop on errors
49+
Get-ChildItem "output\*.nupkg" -Recurse | ForEach-Object {
50+
dotnet nuget push $_.FullName --api-key " ${{ secrets.NUGET_KEY }}" --source https://api.nuget.org/v3/index.json
51+
}
52+
4753
4854
- name: Create GitHub Release
4955
uses: softprops/action-gh-release@v1

0 commit comments

Comments
 (0)