diff options
Diffstat (limited to 'forge')
| -rw-r--r-- | forge/script/stagePublisher.sh | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/forge/script/stagePublisher.sh b/forge/script/stagePublisher.sh new file mode 100644 index 0000000..57265f2 --- /dev/null +++ b/forge/script/stagePublisher.sh @@ -0,0 +1,24 @@ +#!/usr/bin/env bash +# Written by GPT after discussions on how to de-glitch rsync-s to st33v.com +# 31 Jan 2026 + +set -euo pipefail + +ROOT_BUILD="$HOME/dox/st33v.com/faircamp/.faircamp_build/" +SOTD_BUILD="$HOME/dox/st33v.com/sotd/.faircamp_build/" +STAGE="$HOME/dox/st33v.com/stage" +REMOTE="st33v@st33v.com:/srv/www/st33v.com/" + +rm -rf "$STAGE" +mkdir -p "$STAGE/sotd" + +# materialize staging tree (real files) +rsync -a --delete "$ROOT_BUILD" "$STAGE/" +rsync -a --delete "$SOTD_BUILD" "$STAGE/sotd/" + +# generate robots/sitemap in the staged output +gen-robots-sitemap.sh "$STAGE" "https://st33v.com" + +# publish atomically +rsync -anv --delete "$STAGE/"/ "$REMOTE" + |
