blob: 1e86a7805f9d846f061595e45bedbd50c22c8793 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
# Skip build if using git push with -o or --push-option
if [[ -v GIT_PUSH_OPTION_0 ]]; then
exit
fi
# Solution to
# remote: fatal: not a git repository: '.'
unset GIT_DIR
# Update local clone
cd /var/lib/forgejo/website
git pull
git submodule update
# Manually copy static since btrfs COW is super fast
rm -r /srv/http/www
cp -r static /srv/http/www
hugo --destination /srv/http/www
|