2019-04-06 17:17:57 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# failures are evil
|
|
|
|
set -e
|
|
|
|
|
|
|
|
# update our clone
|
2019-04-08 16:45:33 +02:00
|
|
|
git pull -q &> /dev/null
|
2019-04-06 17:17:57 +02:00
|
|
|
|
2019-04-06 22:24:29 +02:00
|
|
|
# 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`
|
2019-08-04 12:03:31 +02:00
|
|
|
|
|
|
|
# rerun hugo generator
|
2021-01-24 21:39:31 +01:00
|
|
|
hugo --minify --noTimes
|
2019-04-06 18:29:08 +02:00
|
|
|
|
2019-04-13 18:59:02 +02:00
|
|
|
# copy .htaccess
|
|
|
|
cp -f static/.htaccess public
|
|
|
|
|
2019-04-06 18:29:08 +02:00
|
|
|
# current date
|
2019-04-06 18:30:04 +02:00
|
|
|
date -Iseconds
|