bsd/.github/hugo.sh
2024-04-03 22:04:25 -07:00

10 lines
264 B
Bash

#!/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/"