homepage/deploy
surtur 2881a537e9
All checks were successful
continuous-integration/drone/push Build is passing
fix: complement of 4fc713392b - picky downloader bruh
2020-05-31 03:37:06 +02:00

23 lines
414 B
Bash
Executable File

#!/bin/bash
USR=dotyaoverlord
HOST=dotya.ml
DIR=public/
export HUGO_VERSION=$1
if [ $(hugo version | grep -q ${HUGO_VERSION}; echo $?) -eq 1 ]; then
~/bin/gethugo $HUGO_VERSION
fi
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