microquack / scripts /deploy-space.sh
Onur Solmaz
chore: move PCM fixtures to LFS for the Space push
3a7fce1
Raw History Blame Contribute Delete
491 Bytes
#!/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