fix(ci): Separate cd and build commands, add step-by-step verification
deploy / deploy (push) Failing after 52s
deploy / notify (push) Successful in 1s

- 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 <noreply@anthropic.com>
This commit is contained in:
2026-08-17 21:59:09 +09:00
parent ff91504bde
commit 85b4842d0d
+9 -6
View File
@@ -114,13 +114,16 @@ jobs:
- name: Build frontend into Host static assets - name: Build frontend into Host static assets
run: | run: |
cd frontend && pnpm install --frozen-lockfile && pnpm build cd frontend
wwwroot="../src/KArtSell.Host/wwwroot" pnpm install --frozen-lockfile
[ -d "$wwwroot" ] && rm -rf "$wwwroot" pnpm build
mkdir -p "$wwwroot" echo "✅ Vite build completed"
cp -r dist/* "$wwwroot/" 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" 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 - name: Publish Release Build
run: | run: |