butiran

ds script

· 1 min read · edit

Build Hugo site, rsync, and commit in public repo.

#!/bin/bash

# Buid the Hugo site into public directory
hugo --minify

# Perform remote synchronization
rsync -av --delete public/ ../butiran/docs/

# Commit and push changes in the public repository
cd ../butiran
git add docs
git commit -m "rsync from butiran-src"
git push
cd ../butiran-src

notes

  • There is a not-so-short discussion about it 1 and I only get clearer a little bit, but it sufficient for now.

refs


  1. GPT 5.2, “Script correction and improvement”, ChatGPT, 21 Dec 2025, url https://chatgpt.com/share/69477123-95ac-800a-810f-95cbbfd54c49 [20251221]. ↩︎