homepage/deploy
surtur 978bf9ea04
All checks were successful
continuous-integration/drone/push Build is passing
added hugo updater ref to the deploy script
2020-03-11 21:32:57 +01:00

21 lines
312 B
Bash
Executable File

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