Spaces:
Running
Running
Download scripts/deploy-space.sh from osolmaz/microquack: direct link, hf CLI and curl.
- Browser
- Download file 491 Bytes
-
https://huggingface.co/spaces/osolmaz/microquack/resolve/main/scripts/deploy-space.sh
- Command line
-
hf download hf://spaces/osolmaz/microquack/scripts/deploy-space.sh
-
curl -L -o deploy-space.sh https://huggingface.co/spaces/osolmaz/microquack/resolve/main/scripts/deploy-space.sh
491 Bytes
| # 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 | |