Updated mappings import. Fixed github action

This commit is contained in:
2025-07-17 21:44:31 +02:00
parent 7c496b4c7f
commit 6690f09a32
2 changed files with 14 additions and 17 deletions

View File

@@ -6,14 +6,14 @@ on:
workflow_dispatch: workflow_dispatch:
jobs: jobs:
build-scrips: build-scripts:
runs-on: debian-12 runs-on: debian-12
steps: steps:
- name: Clean up Environment - name: Clean up Environment
run: | run: |
rm -rf ./* rm -rf ./*
rm -rf ./.??* rm -rf ./.??*
- uses: actions/checkout@v3 - uses: actions/checkout@v3
@@ -25,31 +25,28 @@ jobs:
build-moonlight: build-moonlight:
runs-on: debian-12 runs-on: debian-12
needs: build-scrips needs: build-scripts
steps: steps:
- name: Clean up Environment - name: Clean up Environment
run: | run: |
rm -rf ./* rm -rf ./*
rm -rf ./.??* rm -rf ./.??*
- name: Remove nuget source - name: Remove nuget source
continue-on-error: true continue-on-error: true
run: dotnet nuget remove source moonlight-github 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
run: dotnet tool install dotnet-moonlight -g
- name: Build and Pack Moonlight - name: Build and Pack Moonlight
run: | run: |
mkdir ./packs mkdir ./packs
export PATH="$PATH:~/.dotnet/tools" dotnet restore
dotnet moonlight pack . ./packs dotnet build
dotnet pack -o ./packs -c Debug Moonlight.ApiServer
dotnet pack -o ./packs -c Debug Moonlight.Client
dotnet pack -o ./packs -c Debug Moonlight.Shared
- 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

View File

@@ -29,7 +29,7 @@
@source "../../Moonlight.Client/**/*.cs"; @source "../../Moonlight.Client/**/*.cs";
@source "../../Moonlight.Client/**/*.html"; @source "../../Moonlight.Client/**/*.html";
@source "../../Moonlight.Client/**/*.razor"; @source "../../Moonlight.Client/**/*.razor";
@source "../../Moonlight.Client/Styles/mappings/*.map"; @source "../../Moonlight.Client/Styles/**/*.map";
@source "../../Moonlight.ApiServer/**/*.razor"; @source "../../Moonlight.ApiServer/**/*.razor";