Add git hook
This commit is contained in:
parent
e43e68e469
commit
e6a7545e2d
9
.github/hugo.sh
vendored
Normal file
9
.github/hugo.sh
vendored
Normal 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/"
|
Loading…
Reference in New Issue
Block a user