From 1297ff30666d9b02f717ee25018806b3530e68db Mon Sep 17 00:00:00 2001 From: fukunee Date: Thu, 14 May 2026 02:36:56 +0800 Subject: [PATCH] Add sync-blog script for automated site deployment --- scripts/sync-blog@tx-ubuntu-hugo.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 scripts/sync-blog@tx-ubuntu-hugo.sh diff --git a/scripts/sync-blog@tx-ubuntu-hugo.sh b/scripts/sync-blog@tx-ubuntu-hugo.sh new file mode 100644 index 0000000..6fefca1 --- /dev/null +++ b/scripts/sync-blog@tx-ubuntu-hugo.sh @@ -0,0 +1,13 @@ +#!/usr/bin/env bash +# sync-blog: pull + rebuild +set -e + +cd ~/hugo-blog + +echo ">>> git pull..." +git pull + +echo ">>> hugo build..." +hugo --minify + +echo ">>> done -- site updated"