homepage/deploy

21 lines
312 B
Plaintext
Raw Normal View History

#!/bin/bash
2019-10-19 11:41:54 +02:00
2020-03-10 04:06:54 +01:00
USR=dotyaoverlord
2019-10-20 12:20:48 +02:00
HOST=dotya.ml
DIR=public/
HUGO_VERSION=$1
2019-10-19 11:41:54 +02:00
gethugo $HUGO_VERSION
git submodule init
git submodule update
hugo version
hugo --gc=true --minify
2020-03-10 04:06:54 +01:00
if [ $USER = $USR ]; then
2020-03-10 04:06:54 +01:00
rsync -av --delete public/ ~/${DIR}
else
rsync -avz --delete public/ ${USR}@${HOST}:~/${DIR}
fi
2019-10-19 11:41:54 +02:00
exit 0