Skip to content

Commit c24f193

Browse files
committed
fix wwwroot
1 parent 6df52b9 commit c24f193

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ jobs:
1313
runs-on: self-hosted
1414

1515
steps:
16+
- run: git config core.longPaths true
1617
- name: Checkout
1718
uses: actions/checkout@v4
1819
with:
1920
fetch-depth: 0
2021
submodules: recursive
21-
clean: false
2222

2323
- name: Checkout Assets
2424
uses: clansty/checkout@main

Packaging/Build.ps1

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@ try {
103103
Write-Host "Building Frontend..." -ForegroundColor Cyan
104104
Push-Location "$ProjectRoot\MaiChartManager\Front"
105105
try {
106-
cmd /c pnpm build
106+
pnpm build
107+
if ($LASTEXITCODE -ne 0) { throw "Frontend build failed with exit code $LASTEXITCODE" }
107108
} finally {
108109
Pop-Location
109110
}
@@ -119,10 +120,13 @@ try {
119120
Write-Host "Using Configuration: $ConfigName" -ForegroundColor Yellow
120121

121122
dotnet publish -p:Configuration=$ConfigName
123+
if ($LASTEXITCODE -ne 0) { throw "dotnet publish failed with exit code $LASTEXITCODE" }
122124
} finally {
123125
Pop-Location
124126
}
125127

128+
Copy-Item "$ProjectRoot\MaiChartManager\wwwroot" "$PSScriptRoot\Pack\wwwroot" -Recurse -Force
129+
126130
# ==========================================
127131
# 6. 准备打包目录
128132
# ==========================================

0 commit comments

Comments
 (0)