forked from jshiffer/site
10 lines
264 B
Bash
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/"
|