Fixed type in razor component. Updated action file with refactored version for better readability
This commit is contained in:
@@ -8,59 +8,61 @@ on:
|
||||
paths:
|
||||
- 'Moonlight.*/*.csproj'
|
||||
|
||||
env:
|
||||
NUGET_SOURCE: https://git.battlestati.one/api/packages/Moonlight-Panel/nuget/index.json
|
||||
NUGET_PUBLIC: https://api.nuget.org/v3/index.json
|
||||
CONFIGURATION: Debug
|
||||
|
||||
jobs:
|
||||
publish:
|
||||
name: Publish Dev Packages
|
||||
|
||||
name: Publish ${{ matrix.project }}
|
||||
runs-on: linux_amd64
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
project:
|
||||
- Moonlight.Api
|
||||
- Moonlight.Shared
|
||||
- Moonlight.Frontend
|
||||
|
||||
steps:
|
||||
- name: Check out repository code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
# Publish api server
|
||||
- name: Build project
|
||||
run: dotnet build Moonlight.Api --configuration Debug
|
||||
- name: Restore NuGet packages
|
||||
run: >
|
||||
dotnet restore ${{ matrix.project }}
|
||||
--source ${{ env.NUGET_PUBLIC }}
|
||||
--source ${{ env.NUGET_SOURCE }}
|
||||
|
||||
- name: Publish NuGet package
|
||||
run: dotnet pack Moonlight.Api --configuration Debug --output ./artifacts
|
||||
# Frontend requires a host build + Tailwind compilation first
|
||||
- name: Build frontend host (Frontend only)
|
||||
if: matrix.project == 'Moonlight.Frontend'
|
||||
run: >
|
||||
dotnet build Hosts/Moonlight.Frontend.Host
|
||||
--configuration ${{ env.CONFIGURATION }}
|
||||
|
||||
- name: Push nuget package
|
||||
run: dotnet nuget push ./artifacts/*.nupkg --skip-duplicate --source https://git.battlestati.one/api/packages/Moonlight-Panel/nuget/index.json --api-key ${{ secrets.ACCESS_TOKEN }}
|
||||
|
||||
- name: Remove artifacts
|
||||
run: rm -rf ./artifacts
|
||||
|
||||
# Publish frontend
|
||||
# We need to build it first so the class list files generate
|
||||
- name: Build project
|
||||
run: dotnet build Hosts/Moonlight.Frontend.Host --configuration Debug
|
||||
|
||||
- name: Build tailwind styles and extract class list
|
||||
- name: Build Tailwind styles (Frontend only)
|
||||
if: matrix.project == 'Moonlight.Frontend'
|
||||
working-directory: Hosts/Moonlight.Frontend.Host/Styles
|
||||
run: npm install && npm run build
|
||||
|
||||
- name: Build project
|
||||
run: dotnet build Moonlight.Frontend --configuration Debug
|
||||
run: >
|
||||
dotnet build ${{ matrix.project }}
|
||||
--configuration ${{ env.CONFIGURATION }}
|
||||
--no-restore
|
||||
|
||||
- name: Publish NuGet package
|
||||
run: dotnet pack Moonlight.Frontend --configuration Debug --output ./artifacts
|
||||
- name: Pack NuGet package
|
||||
run: >
|
||||
dotnet pack ${{ matrix.project }}
|
||||
--configuration ${{ env.CONFIGURATION }}
|
||||
--output ./artifacts
|
||||
--no-build
|
||||
|
||||
- name: Push nuget package
|
||||
run: dotnet nuget push ./artifacts/*.nupkg --skip-duplicate --source https://git.battlestati.one/api/packages/Moonlight-Panel/nuget/index.json --api-key ${{ secrets.ACCESS_TOKEN }}
|
||||
|
||||
- name: Remove artifacts
|
||||
run: rm -rf ./artifacts
|
||||
|
||||
# Publish shared
|
||||
- name: Build project
|
||||
run: dotnet build Moonlight.Shared --configuration Debug
|
||||
|
||||
- name: Publish NuGet package
|
||||
run: dotnet pack Moonlight.Shared --configuration Debug --output ./artifacts
|
||||
|
||||
- name: Push nuget package
|
||||
run: dotnet nuget push ./artifacts/*.nupkg --skip-duplicate --source https://git.battlestati.one/api/packages/Moonlight-Panel/nuget/index.json --api-key ${{ secrets.ACCESS_TOKEN }}
|
||||
|
||||
- name: Remove artifacts
|
||||
run: rm -rf ./artifacts
|
||||
- name: Push NuGet package
|
||||
run: >
|
||||
dotnet nuget push ./artifacts/*.nupkg
|
||||
--skip-duplicate
|
||||
--source ${{ env.NUGET_SOURCE }}
|
||||
--api-key ${{ secrets.ACCESS_TOKEN }}
|
||||
@@ -34,7 +34,7 @@
|
||||
@if (SettingsResult.Succeeded)
|
||||
{
|
||||
<TabsContent Value="settings">
|
||||
<<Moonlight.Frontend.Admin.Sys.Settings.Index/>
|
||||
<Moonlight.Frontend.Admin.Sys.Settings.Index/>
|
||||
</TabsContent>
|
||||
}
|
||||
@if (DiagnoseResult.Succeeded)
|
||||
|
||||
Reference in New Issue
Block a user