Skip to content

Commit 8640c63

Browse files
committed
似乎是通配符的问题
1 parent a5de82b commit 8640c63

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/publish.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,13 @@ jobs:
7676
7777
- name: Publish to NuGet
7878
if: startsWith(github.ref, 'refs/tags/v')
79-
run: dotnet nuget push artifacts/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }} --skip-duplicate
80-
79+
shell: pwsh
80+
run: |
81+
Write-Host "Publishing NuGet packages..."
82+
$files = Get-ChildItem -Path "artifacts" -Filter "*.nupkg"
83+
foreach ($f in $files) {
84+
dotnet nuget push $f.FullName --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }} --skip-duplicate
85+
}
8186
- name: Upload artifacts
8287
uses: actions/upload-artifact@v4
8388
with:

0 commit comments

Comments
 (0)