site/.github/hugo.sh

10 lines
264 B
Bash
Raw Permalink Normal View History

2024-04-03 22:04:25 -07:00
#!/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/"