Files
xiaoxia-saas/scripts/package_release_artifact.sh
T
Xiaoxia AI 631328ea7c
CI/CD Pipeline / Validate Code Quality And Tests (push) Has been cancelled
Deploy / Deploy Staging (push) Has been cancelled
Deploy / Deploy Production (push) Has been cancelled
fix(deploy): require prebuilt web artifact for production
2026-06-22 09:34:27 +08:00

15 lines
312 B
Bash

#!/bin/sh
set -eu
ROOT_DIR="$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)"
OUTPUT_PATH="${1:-$ROOT_DIR/release-artifact.tar}"
cd "$ROOT_DIR/apps/web"
npm ci
npm run build
cd "$ROOT_DIR"
tar --exclude=.git --exclude=apps/web/node_modules -cf "$OUTPUT_PATH" .
echo "Release artifact written to $OUTPUT_PATH"