Download scripts/deploy.sh from HelloSun/esp32emu: direct link, hf CLI and curl.
- Browser
- Download file 504 Bytes
-
https://huggingface.co/spaces/HelloSun/esp32emu/resolve/main/scripts/deploy.sh
- Command line
-
hf download hf://spaces/HelloSun/esp32emu/scripts/deploy.sh
-
curl -L -o deploy.sh https://huggingface.co/spaces/HelloSun/esp32emu/resolve/main/scripts/deploy.sh
504 Bytes
| # Upload the site + sources + a compressed source archive to a Hugging Face static Space. | |
| # The token is NEVER stored in files: export it first. | |
| # export HF_TOKEN=hf_xxx (required) | |
| # export HF_SPACE=HelloSun/esp32emu (optional, default shown) | |
| set -e | |
| cd "$(dirname "$0")/.." | |
| [ -n "$HF_TOKEN" ] || { echo "ERROR: set HF_TOKEN first (export HF_TOKEN=hf_...)"; exit 1; } | |
| python3 tools/build_assets.py | |
| scripts/pack_source.sh | |
| python3 tools/deploy.py "${HF_SPACE:-HelloSun/esp32emu}" | |