Compare commits
4 Commits
feat/Restr
...
v2.1
| Author | SHA1 | Date | |
|---|---|---|---|
| d0d6aca57f | |||
| 00f8542407 | |||
| 7637ec4373 | |||
| 4c2bead114 |
@@ -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: Publish NuGet package
|
||||
run: dotnet pack Moonlight.Api --configuration Debug --output ./artifacts
|
||||
- name: Restore NuGet packages
|
||||
run: >
|
||||
dotnet restore ${{ matrix.project }}
|
||||
--source ${{ env.NUGET_PUBLIC }}
|
||||
--source ${{ env.NUGET_SOURCE }}
|
||||
|
||||
- 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
|
||||
# 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: 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 }}
|
||||
@@ -6,6 +6,7 @@
|
||||
@import "./theme.css";
|
||||
|
||||
@source "../bin/ShadcnBlazor/ShadcnBlazor.map";
|
||||
@source "../bin/**/*.map";
|
||||
|
||||
@source "../../../Moonlight.Api/**/*.razor";
|
||||
@source "../../../Moonlight.Api/**/*.cs";
|
||||
|
||||
@@ -102,6 +102,9 @@
|
||||
<script defer src="/_content/ShadcnBlazor/interop.js"></script>
|
||||
<script defer src="/_content/ShadcnBlazor.Extras/interop.js"></script>
|
||||
<script defer src="/_content/ShadcnBlazor.Extras/codemirror-bundle.js"></script>
|
||||
|
||||
<script src="/_content/Moonlight.Frontend/chart.umd.js" defer></script>
|
||||
|
||||
<script src="_framework/blazor.webassembly#[.{fingerprint}].js"></script>
|
||||
</body>
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
14
Moonlight.Frontend/wwwroot/chart.umd.js
Normal file
14
Moonlight.Frontend/wwwroot/chart.umd.js
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user