homepage/deploy
surtur 5ee5868f5b
Some checks reported errors
continuous-integration/drone/push Build encountered an error
fix: corrected PATH - was unable to find gethugo
2020-06-10 14:41:17 +02:00

25 lines
362 B
Bash
Executable File

#!/bin/bash
USR=dotyaoverlord
HOST=dotya.ml
DIR=public/
export HUGO_VERSION=$1
PATH=~/.local/bin:~/bin:$PATH
gethugo $HUGO_VERSION
git submodule init
git submodule update
which hugo
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