hopefully fixed now
This commit is contained in:
21
.github/workflows/publish-dev-packages.yml
vendored
21
.github/workflows/publish-dev-packages.yml
vendored
@@ -27,19 +27,30 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Clean up Environment
|
- name: Clean up Environment
|
||||||
run: rm -rf ./*
|
run: |
|
||||||
|
rm -rf ./*
|
||||||
rm -rf ./.??*
|
rm -rf ./.??*
|
||||||
|
|
||||||
|
- name: Remove nuget source
|
||||||
|
continue-on-error: true
|
||||||
|
run: dotnet nuget remove source moonlight-github
|
||||||
|
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Add nuget source
|
||||||
|
run: dotnet nuget add source -n moonlight-github "https://nuget.pkg.github.com/Moonlight-Panel/index.json" -u Moonlight-Panel -p ${{secrets.GH_PACKAGES_READWRITE}} --store-password-in-clear-text
|
||||||
|
|
||||||
- name: Setup Environment
|
- name: Setup Environment
|
||||||
run: mkdir ./tool
|
run: dotnet tool install dotnet-moonlight -g
|
||||||
dotnet nuget add source --configfile ./tool/nuget.config -n github "https://nuget.pkg.github.com/Moonlight-Panel/index.json" -u Moonlight-Panel -p ${{secrets.GH_PACKAGES_READWRITE}} --store-password-in-clear-text
|
|
||||||
dotnet tool install --configfile ./tool/nuget.config --tool-path ./tool dotnet-moonlight
|
|
||||||
|
|
||||||
- name: Build and Pack Moonlight
|
- name: Build and Pack Moonlight
|
||||||
run: mkdir ./tool
|
run: |
|
||||||
|
mkdir ./packs
|
||||||
dotnet moonlight pack . ./packs
|
dotnet moonlight pack . ./packs
|
||||||
|
|
||||||
- name: Publish to Github
|
- name: Publish to Github
|
||||||
run: dotnet nuget push "./packs/*.nupkg" --skip-duplicate --api-key ${{secrets.GH_PACKAGES_READWRITE}} --source https://nuget.pkg.github.com/Moonlight-Panel/index.json
|
run: dotnet nuget push "./packs/*.nupkg" --skip-duplicate --api-key ${{secrets.GH_PACKAGES_READWRITE}} --source https://nuget.pkg.github.com/Moonlight-Panel/index.json
|
||||||
|
|
||||||
|
- name: Remove nuget source
|
||||||
|
continue-on-error: true
|
||||||
|
run: dotnet nuget remove source moonlight-github
|
||||||
Reference in New Issue
Block a user