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:
|
paths:
|
||||||
- 'Moonlight.*/*.csproj'
|
- '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:
|
jobs:
|
||||||
publish:
|
publish:
|
||||||
name: Publish Dev Packages
|
name: Publish ${{ matrix.project }}
|
||||||
|
|
||||||
runs-on: linux_amd64
|
runs-on: linux_amd64
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
project:
|
||||||
|
- Moonlight.Api
|
||||||
|
- Moonlight.Shared
|
||||||
|
- Moonlight.Frontend
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Check out repository code
|
- name: Check out repository code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
# Publish api server
|
|
||||||
- name: Build project
|
|
||||||
run: dotnet build Moonlight.Api --configuration Debug
|
|
||||||
|
|
||||||
- name: Publish NuGet package
|
- name: Restore NuGet packages
|
||||||
run: dotnet pack Moonlight.Api --configuration Debug --output ./artifacts
|
run: >
|
||||||
|
dotnet restore ${{ matrix.project }}
|
||||||
|
--source ${{ env.NUGET_PUBLIC }}
|
||||||
|
--source ${{ env.NUGET_SOURCE }}
|
||||||
|
|
||||||
- name: Push nuget package
|
# Frontend requires a host build + Tailwind compilation first
|
||||||
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: Build frontend host (Frontend only)
|
||||||
|
if: matrix.project == 'Moonlight.Frontend'
|
||||||
- name: Remove artifacts
|
run: >
|
||||||
run: rm -rf ./artifacts
|
dotnet build Hosts/Moonlight.Frontend.Host
|
||||||
|
--configuration ${{ env.CONFIGURATION }}
|
||||||
# Publish frontend
|
|
||||||
# We need to build it first so the class list files generate
|
- name: Build Tailwind styles (Frontend only)
|
||||||
- name: Build project
|
if: matrix.project == 'Moonlight.Frontend'
|
||||||
run: dotnet build Hosts/Moonlight.Frontend.Host --configuration Debug
|
|
||||||
|
|
||||||
- name: Build tailwind styles and extract class list
|
|
||||||
working-directory: Hosts/Moonlight.Frontend.Host/Styles
|
working-directory: Hosts/Moonlight.Frontend.Host/Styles
|
||||||
run: npm install && npm run build
|
run: npm install && npm run build
|
||||||
|
|
||||||
- name: Build project
|
- name: Build project
|
||||||
run: dotnet build Moonlight.Frontend --configuration Debug
|
run: >
|
||||||
|
dotnet build ${{ matrix.project }}
|
||||||
|
--configuration ${{ env.CONFIGURATION }}
|
||||||
|
--no-restore
|
||||||
|
|
||||||
- name: Publish NuGet package
|
- name: Pack NuGet package
|
||||||
run: dotnet pack Moonlight.Frontend --configuration Debug --output ./artifacts
|
run: >
|
||||||
|
dotnet pack ${{ matrix.project }}
|
||||||
|
--configuration ${{ env.CONFIGURATION }}
|
||||||
|
--output ./artifacts
|
||||||
|
--no-build
|
||||||
|
|
||||||
- name: Push nuget package
|
- 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 }}
|
run: >
|
||||||
|
dotnet nuget push ./artifacts/*.nupkg
|
||||||
- name: Remove artifacts
|
--skip-duplicate
|
||||||
run: rm -rf ./artifacts
|
--source ${{ env.NUGET_SOURCE }}
|
||||||
|
--api-key ${{ secrets.ACCESS_TOKEN }}
|
||||||
# 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
|
|
||||||
@@ -34,7 +34,7 @@
|
|||||||
@if (SettingsResult.Succeeded)
|
@if (SettingsResult.Succeeded)
|
||||||
{
|
{
|
||||||
<TabsContent Value="settings">
|
<TabsContent Value="settings">
|
||||||
<<Moonlight.Frontend.Admin.Sys.Settings.Index/>
|
<Moonlight.Frontend.Admin.Sys.Settings.Index/>
|
||||||
</TabsContent>
|
</TabsContent>
|
||||||
}
|
}
|
||||||
@if (DiagnoseResult.Succeeded)
|
@if (DiagnoseResult.Succeeded)
|
||||||
|
|||||||
Reference in New Issue
Block a user