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: |