Skip to content

Commit 49abc05

Browse files
committed
Add loop to publish every NuGet and Symbol package
1 parent ceaebb8 commit 49abc05

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,4 +78,7 @@ jobs:
7878

7979
- name: NuGet Push
8080
if: startsWith(github.ref, 'refs/tags/') && matrix.dotnet.name == '.NET 8' && runner.os == 'Windows'
81-
run: dotnet nuget push ${{ env.NuGetDirectory }}/*.*nupkg --api-key ${{steps.login.outputs.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json
81+
run: |
82+
foreach ($file in (Get-ChildItem ${{ env.NuGetDirectory }} -Recurse -Include *.*nupkg)) {
83+
dotnet nuget push $file --api-key ${{steps.login.outputs.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json
84+
}

0 commit comments

Comments
 (0)