From d42d434a6119bdae5c53d874e6dad228e9f1a825 Mon Sep 17 00:00:00 2001 From: St33v Date: Sun, 1 Feb 2026 15:01:36 +1100 Subject: trial version of combine and upload (dry run set) --- forge/script/stagePublisher.sh | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 forge/script/stagePublisher.sh (limited to 'forge') 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" + -- cgit v1.3