Skip to content

Commit 91baddb

Browse files
committed
Use -Recurse to find the packages that need publishing
1 parent 375b7a9 commit 91baddb

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/publish.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,13 @@ jobs:
6868
- name: 📤 Push to NuGet
6969
# Only push to NuGet if we're building a tag (optional)
7070
if: startsWith(github.ref, 'refs/tags/')
71-
shell: pwsh
7271
# Loop through all the packages in the output folder and push them to
7372
# nuget.org, using the NUGET_API_KEY generated by the previous login step
7473
run: |
75-
Get-ChildItem src/ -Filter *.nupkg | ForEach-Object {
74+
Get-ChildItem src/ -Recurse -Filter *.nupkg | ForEach-Object {
75+
Write-Host $_.FullName
7676
dotnet nuget push $_.FullName `
7777
--api-key "${{ steps.login.outputs.NUGET_API_KEY }}" `
7878
--source https://api.nuget.org/v3/index.json
7979
}
80+
shell: pwsh

0 commit comments

Comments
 (0)