File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 : |
You can’t perform that action at this time.
0 commit comments