Skip to content

Commit 8437ab3

Browse files
committed
gpt大人,我们这么做工作流真的可以工作吗
1 parent 8640c63 commit 8437ab3

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

.github/workflows/publish.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,13 @@ jobs:
7676
7777
- name: Publish to NuGet
7878
if: startsWith(github.ref, 'refs/tags/v')
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-
}
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+
}
8686
- name: Upload artifacts
8787
uses: actions/upload-artifact@v4
8888
with:

0 commit comments

Comments
 (0)