Spaces:
Paused
Paused
Download scripts/release.sh from nathycodes/presentercoach: direct link, hf CLI and curl.
- Browser
- Download file 539 Bytes
-
https://huggingface.co/spaces/nathycodes/presentercoach/resolve/main/scripts/release.sh
- Command line
-
hf download hf://spaces/nathycodes/presentercoach/scripts/release.sh
-
curl -L -o release.sh https://huggingface.co/spaces/nathycodes/presentercoach/resolve/main/scripts/release.sh
539 Bytes
| set -euo pipefail | |
| VERSION="${1:?Usage: ./scripts/release.sh <version>}" | |
| if [ -n "$(git status --porcelain)" ]; then | |
| echo "ERROR: working tree is not clean" | |
| exit 1 | |
| fi | |
| if [ "$(git branch --show-current)" != "main" ]; then | |
| echo "ERROR: releases must be cut from main" | |
| exit 1 | |
| fi | |
| npm --workspace apps/web test -- --run | |
| npm --workspace packages/shared exec tsc -- --noEmit | |
| (cd apps/api && PYTHONPATH=src pytest -q) | |
| docker compose build | |
| git tag -a "${VERSION}" -m "Release ${VERSION}" | |
| git push origin main --tags | |