Skip to content

Commit 213e8c4

Browse files
committed
Switch NuGet and symbols publishing steps to PowerShell loops for individual package handling
1 parent 4aab340 commit 213e8c4

1 file changed

Lines changed: 12 additions & 4 deletions

File tree

.github/workflows/publish-to-nuget.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,16 @@ jobs:
4444
dir
4545
dir artifacts
4646
47-
- name: Publish NuGet package
48-
run: dotnet nuget push "${{ github.workspace }}/artifacts/*.nupkg" --api-key ${{ secrets.NUGET_TOKEN }} --source https://api.nuget.org/v3/index.json --skip-duplicate
47+
- name: Publish NuGet packages
48+
shell: pwsh
49+
run: |
50+
Get-ChildItem -Path "${{ github.workspace }}/artifacts" -Filter *.nupkg | ForEach-Object {
51+
dotnet nuget push $_.FullName --api-key ${{ secrets.NUGET_TOKEN }} --source https://api.nuget.org/v3/index.json --skip-duplicate
52+
}
4953
50-
- name: Publish symbols package
51-
run: dotnet nuget push "${{ github.workspace }}/artifacts/*.snupkg" --api-key ${{ secrets.NUGET_TOKEN }} --source https://api.nuget.org/v3/index.json --skip-duplicate
54+
- name: Publish symbols packages
55+
shell: pwsh
56+
run: |
57+
Get-ChildItem -Path "${{ github.workspace }}/artifacts" -Filter *.snupkg | ForEach-Object {
58+
dotnet nuget push $_.FullName --api-key ${{ secrets.NUGET_TOKEN }} --source https://api.nuget.org/v3/index.json --skip-duplicate
59+
}

0 commit comments

Comments
 (0)