homepage/deploy
surtur 2f90469411
All checks were successful
continuous-integration/drone/push Build is passing
added absolute path to gethugo
2020-03-11 21:37:30 +01:00

21 lines
318 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
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