Skip to content

Commit c292509

Browse files
authored
Merge pull request #31 from afonsoft/feature/update-actions
fix: Resolve PowerShell wildcard issue in NuGet publish workflow
2 parents 740ee75 + 6b2c1d6 commit c292509

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/publish-all.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,13 +111,17 @@ jobs:
111111
- name: 📦 Publish to GitHub Packages
112112
run: |
113113
echo "📦 Publishing to GitHub Packages..."
114-
dotnet nuget push ./packages/*.nupkg --source 'https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json' --api-key ${{ secrets.GITHUB_TOKEN }} --skip-duplicate
114+
Get-ChildItem -Path "./packages" -Filter "*.nupkg" | ForEach-Object {
115+
dotnet nuget push $_.FullName --source 'https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json' --api-key ${{ secrets.GITHUB_TOKEN }} --skip-duplicate
116+
}
115117
116118
- name: 📦 Publish to NuGet.org
117119
if: ${{ github.event.inputs.publish_nuget != 'false' }}
118120
run: |
119121
echo "📦 Publishing to NuGet.org..."
120-
dotnet nuget push ./packages/*.nupkg --source 'https://api.nuget.org/v3/index.json' --api-key ${{ secrets.NUGET_API_KEY }} --skip-duplicate
122+
Get-ChildItem -Path "./packages" -Filter "*.nupkg" | ForEach-Object {
123+
dotnet nuget push $_.FullName --source 'https://api.nuget.org/v3/index.json' --api-key ${{ secrets.NUGET_API_KEY }} --skip-duplicate
124+
}
121125
122126
- name: ✅ NuGet Summary
123127
run: |

0 commit comments

Comments
 (0)