homepage/deploy
surtur d8d9948982
All checks were successful
continuous-integration/drone/push Build is passing
fix: updated submodule + plz do update submodule --remote
2020-07-08 10:05:13 +02:00

25 lines
379 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 --remote --merge
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