repo for the landing site https://dotya.ml
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

24 lines
379 B

#!/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