File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -103,7 +103,8 @@ try {
103103Write-Host " Building Frontend..." - ForegroundColor Cyan
104104Push-Location " $ProjectRoot \MaiChartManager\Front"
105105try {
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# ==========================================
You can’t perform that action at this time.
0 commit comments