Spaces:
Running
Running
File size: 491 Bytes
3201ee4 3a7fce1 3201ee4 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | #!/usr/bin/env bash
# Build the site and stage it at the repo root, where the Hugging Face
# static Space serves from; then commit and push to the `space` remote.
set -euo pipefail
cd "$(dirname "$0")/.."
pnpm -w run build:wasm
pnpm --dir apps/web exec vite build --base=/
rm -rf assets index.html
cp apps/web/dist/index.html index.html
cp -r apps/web/dist/assets assets
git add -A index.html assets
git commit -m "deploy: rebuild space site" || echo "site unchanged"
git push space main
|