Skip to content

Commit 722b29e

Browse files
committed
fix build script
1 parent 5012458 commit 722b29e

1 file changed

Lines changed: 7 additions & 9 deletions

File tree

.github/workflows/build.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,15 @@ jobs:
2727
shell: pwsh
2828
run: ./build.ps1
2929

30-
- name: Publish to nuget
31-
if: ${{ github.event_name == 'release' }}
32-
shell: pwsh
33-
run: |
34-
$pck = "$(Get-ChildItem .\publish\packages\*.nupkg | foreach {$_.FullName } | select -First 1)"
35-
Write-Host "publishing $pck"
36-
dotnet nuget push "$pck" --api-key "${{ secrets.NUGET_API_KEY }}" --source "https://api.nuget.org/v3/index.json"
37-
3830
- name: Upload Build Artifacts
3931
uses: actions/upload-artifact@v4
4032
with:
4133
name: dotnet-tool-pacakge
4234
path: publish/packages/*.nupkg
43-
retention-days: 1
35+
retention-days: 1
36+
37+
- name: Publish to nuget
38+
if: ${{ github.event_name == 'release' }}
39+
shell: pwsh
40+
run: |
41+
dotnet nuget push 'publish/packages/*.nupkg' --api-key "${{ secrets.NUGET_API_KEY }}" --source "https://api.nuget.org/v3/index.json" --skip-duplicate

0 commit comments

Comments
 (0)