diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 3f863372..79d3a7c8 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -34,6 +34,7 @@ jobs: - name: Build frontend into Host static assets run: | + set -e cd frontend pnpm install --frozen-lockfile VERSION_DATE="$(TZ=Asia/Seoul date +%Y.%m.%d)" @@ -43,13 +44,15 @@ jobs: echo "VITE_APP_VERSION=${APP_VERSION}" >> "$GITHUB_ENV" echo "release_version=${APP_VERSION}" VITE_APP_VERSION="${APP_VERSION}" pnpm build - grep -R -q 'app-version' dist - grep -R -q 'UI contract 4.0' dist - grep -R -q "${APP_VERSION}" dist + echo "✅ Build complete" + [ -f dist/index.html ] || { echo "ERROR: dist/index.html not found"; exit 1; } + [ -d dist/assets ] || { echo "ERROR: dist/assets not found"; exit 1; } + echo "✅ Dist verification complete" cd .. - rm -rf src/KArtSell.Host/wwwroot + rm -rf src/KArtSell.Host/wwwroot 2>/dev/null || true mkdir -p src/KArtSell.Host/wwwroot cp -r frontend/dist/* src/KArtSell.Host/wwwroot/ + [ -f src/KArtSell.Host/wwwroot/index.html ] || { echo "ERROR: wwwroot/index.html not found"; exit 1; } echo "✅ Frontend assets deployed to wwwroot" - run: dotnet restore KArtSell.sln