Add git hook

This commit is contained in:
Mustafa 2024-04-03 22:04:25 -07:00
parent e43e68e469
commit e6a7545e2d

9
.github/hugo.sh vendored Normal file
View File

@ -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/"