21 lines
384 B
Bash
Executable file
21 lines
384 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# failures are evil
|
|
set -e
|
|
|
|
# update our clone
|
|
git pull -q &> /dev/null
|
|
|
|
# export the GIT env vars we need to have links in the footer
|
|
export GIT_COMMIT_SHA=`git rev-parse --verify HEAD`
|
|
export GIT_COMMIT_SHA_SHORT=`git rev-parse --short HEAD`
|
|
|
|
# rerun hugo generator
|
|
hugo --minify --noTimes
|
|
|
|
# copy .htaccess
|
|
cp -f static/.htaccess public
|
|
|
|
# current date
|
|
date -Iseconds
|