diff --git a/.github/hugo.sh b/.github/hugo.sh new file mode 100644 index 0000000..670b0aa --- /dev/null +++ b/.github/hugo.sh @@ -0,0 +1,9 @@ +#!/bin/sh +# Written by mstf +# Add this to /var/lib/gitea/data/gitea-repositories/lug/site.git/hooks/post-receive.d +# +# Pay attention to permissions + +export GIT_WORK_TREE=/home/gitea/lug-website +git checkout -f +hugo -c="/home/gitea/lug-website" -d="/var/www/html/"