added hugo updater ref to the deploy script
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
surtur 2020-03-11 21:32:57 +01:00
parent 461fe68c00
commit 978bf9ea04
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D
2 changed files with 6 additions and 3 deletions

@ -37,7 +37,7 @@ steps:
- eval $(ssh-agent)
- ssh-add ~/.ssh/overlord
- git pull
- ./deploy
- ./deploy "0.67.0"
when:
status:
- success

7
deploy

@ -1,12 +1,15 @@
#!/bin/sh
#!/bin/bash
USR=dotyaoverlord
HOST=dotya.ml
DIR=public/
HUGO_VERSION=$1
gethugo $HUGO_VERSION
git submodule init
git submodule update
../hugo --gc=true --minify
hugo version
hugo --gc=true --minify
if [ $USER = $USR ]; then
rsync -av --delete public/ ~/${DIR}