Skip to content

Commit e231977

Browse files
committed
ci: upload packages to github packages registry
1 parent 3390a8d commit e231977

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

.github/workflows/build.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -401,17 +401,17 @@ jobs:
401401
run: |
402402
ls
403403
pwsh -ep Bypass -c ./tools/publish-nupkg.ps1 $env:is_release
404-
405-
# - name: Upload Nuget packages to GitHub registry
406-
# if: ${{ github.event_name != 'pull_request' }}
407-
# env:
408-
# GHPKG_KEY: ${{ secrets.GHPKG_KEY }}
409-
# run: |
410-
# dotnet nuget add source --username HelloWRC --password $env:GHPKG_KEY --store-password-in-clear-text --name github "https://nuget.pkg.github.com/ClassIsland/index.json"
411-
# dotnet nuget push .\out\*.nupkg -k $env:GHPKG_KEY --source "github" --skip-duplicate
412404
413405
- name: Upload Nuget Packages to artifacts
414406
uses: actions/upload-artifact@v4
415407
with:
416408
name: out_nupkgs
417-
path: ./out/*.nupkg
409+
path: ./out/*.nupkg
410+
411+
- name: Upload Nuget packages to GitHub registry
412+
if: ${{ github.event_name != 'pull_request' }}
413+
env:
414+
GHPKG_KEY: ${{ secrets.GHPKG_KEY }}
415+
run: |
416+
dotnet nuget add source --username HelloWRC --password $env:GHPKG_KEY --store-password-in-clear-text --name github "https://nuget.pkg.github.com/ClassIsland/index.json"
417+
dotnet nuget push .\out\*.nupkg -k $env:GHPKG_KEY --source "github" --skip-duplicate

0 commit comments

Comments
 (0)