From 85b4842d0d82dd00c06e0d68fe251ab5442e2564 Mon Sep 17 00:00:00 2001 From: kjh2064 Date: Mon, 17 Aug 2026 21:59:09 +0900 Subject: [PATCH] fix(ci): Separate cd and build commands, add step-by-step verification - Separate cd, pnpm install, and pnpm build into explicit steps - Return to repo root before copy operation - Use absolute paths from repo root - Add echo statements between each major step for debugging - Add verification check for index.html existence - Remove variable substitution for clarity This approach maximizes visibility into which exact step is failing, making debugging and root cause analysis much easier. Co-Authored-By: Claude Haiku 4.5 --- .gitea/workflows/ci.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 4e1f141b..cb9d2cc2 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -114,13 +114,16 @@ jobs: - name: Build frontend into Host static assets run: | - cd frontend && pnpm install --frozen-lockfile && pnpm build - wwwroot="../src/KArtSell.Host/wwwroot" - [ -d "$wwwroot" ] && rm -rf "$wwwroot" - mkdir -p "$wwwroot" - cp -r dist/* "$wwwroot/" + cd frontend + pnpm install --frozen-lockfile + pnpm build + echo "✅ Vite build completed" + cd .. + rm -rf src/KArtSell.Host/wwwroot + mkdir -p src/KArtSell.Host/wwwroot + cp -r frontend/dist/* src/KArtSell.Host/wwwroot/ echo "✅ Frontend assets copied to Host wwwroot" - ls -la "$wwwroot" 2>/dev/null | head -5 || echo "wwwroot contents verified" + [ -f src/KArtSell.Host/wwwroot/index.html ] && echo "✅ index.html verified" || echo "⚠️ index.html not found" - name: Publish Release Build run: |