Skip to content

Commit

Permalink
ci: 修复 Nuget 包推送任务
Browse files Browse the repository at this point in the history
  • Loading branch information
HelloWRC committed Sep 30, 2024
1 parent 19314b6 commit 754d09c
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/build_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,13 +135,14 @@ jobs:
bodyFile: ./out/checksums.md
token: ${{ secrets.GITHUB_TOKEN }}

# - name: Upload Nuget packages to NuGet Gallery
# if: ${{ github.event_name != 'pull_request' }}
# env:
# NUGET_KEY: ${{ secrets.NUGET_KEY }}
# run: |
# ls
# dotnet nuget push ./out/*.nupkg -k $env:NUGET_KEY -s https://api.nuget.org/v3/index.json --skip-duplicate
- name: Upload Nuget packages to NuGet Gallery
if: ${{ github.event_name != 'pull_request' }}
env:
NUGET_KEY: ${{ secrets.NUGET_KEY }}
run: |
ls
cd out
dotnet nuget push *.nupkg -k $env:NUGET_KEY -s https://api.nuget.org/v3/index.json --skip-duplicate
- name: Upload to AppCenter
env:
Expand Down

0 comments on commit 754d09c

Please sign in to comment.