homepage/deploy
surtur de2ee3e2b8
All checks were successful
continuous-integration/drone/push Build is passing
add absolute path to hugo binary
2020-03-11 21:40:44 +01:00

21 lines
330 B
Bash
Executable File

#!/bin/bash
USR=dotyaoverlord
HOST=dotya.ml
DIR=public/
HUGO_VERSION=$1
~/bin/gethugo $HUGO_VERSION
git submodule init
git submodule update
~/bin/hugo version
~/bin/hugo --gc=true --minify
if [ $USER = $USR ]; then
rsync -av --delete public/ ~/${DIR}
else
rsync -avz --delete public/ ${USR}@${HOST}:~/${DIR}
fi
exit 0