Some checks are pending
offline / test (push) Waiting to run
New builds write path-relative PDF annotations so the tree can be served from docs.verae-time.net (or any host at the site root) without a rebuild. scripts/rewrite-docs-host.py retargets an already-built site when absolute URLs are preferred. Live service doors stay on their own hostnames.
18 lines
798 B
Bash
Executable file
18 lines
798 B
Bash
Executable file
#!/usr/bin/env bash
|
|
# Build and rsync docs site to zapier.georgelambert.org on NS1.
|
|
#
|
|
# Catalog file links are relative (any hostname at the site root).
|
|
# To republish under another name without a full rebuild:
|
|
# python3 scripts/rewrite-docs-host.py --site ./site \
|
|
# --from https://zapier.georgelambert.org --to https://docs.verae-time.net
|
|
# Optional absolute PDF URLs at build time: DOCS_PUBLIC_URL=https://docs.verae-time.net
|
|
set -euo pipefail
|
|
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
|
|
HOST="${DEPLOY_HOST:-marchon@70.88.205.138}"
|
|
DEST="${DEPLOY_DEST:-/SSD2/sites/zapier.georgelambert.org}"
|
|
|
|
python3 "$ROOT/scripts/build-docs-site.py"
|
|
ssh "$HOST" "mkdir -p '$DEST'"
|
|
rsync -avz --delete "$ROOT/site/" "$HOST:$DEST/"
|
|
echo "rsync done → $HOST:$DEST"
|
|
echo "https://zapier.georgelambert.org/"
|