diff options
| author | St33v <github@f3rr3t.com> | 2026-02-01 15:01:36 +1100 |
|---|---|---|
| committer | St33v <github@f3rr3t.com> | 2026-02-01 15:01:36 +1100 |
| commit | d42d434a6119bdae5c53d874e6dad228e9f1a825 (patch) | |
| tree | 205557ceaa198e4da97d7eec30c8567ee2aecff5 /forge | |
| parent | bb93e8d7c0a37a38d80b75d55117a75aa53e1de1 (diff) | |
trial version of combine and upload (dry run set)
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" + |
