Git hook triggered via local commit or Gitea's one. It runs Hugo against its dedicated repository with Markdown files and related assets.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
607 B

# this script should be pasted as post-receive hook in gitea
# and if sphook is not there yet it will download it
# if sphook is already there the script deletes itself
set -e
cd hooks/post-receive.d/
if [ -f "sphook" ]; then
echo "sphook exists. will delete itself..."
rm post-receive
echo " no more."
echo "sphook doesn't exist. let's download it."
chmod +x sphook
echo "sphook downloaded. let's pump some water out of a sandpoint..."