Skip to content

Commit feea1a2

Browse files
committed
fix(ci): filter out snupkg files from push to avoid 400 error
1 parent b6bbb02 commit feea1a2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/dotnet-ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666
continue-on-error: true # 即便推送失败也继续创建GitHub Release
6767
run: |
6868
$apiKey = '${{ steps.login.outputs.NUGET_API_KEY }}'
69-
$nupkgs = Get-ChildItem ./nupkgs/*.nupkg
69+
$nupkgs = Get-ChildItem ./nupkgs/*.nupkg | Where-Object { $_.Name -notlike '*.snupkg' }
7070
foreach ($nupkg in $nupkgs) {
7171
Write-Host "推送 $($nupkg.Name)..."
7272
dotnet nuget push $nupkg.FullName `

0 commit comments

Comments
 (0)