added hugo updater ref to the deploy script
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
461fe68c00
commit
978bf9ea04
@ -37,7 +37,7 @@ steps:
|
|||||||
- eval $(ssh-agent)
|
- eval $(ssh-agent)
|
||||||
- ssh-add ~/.ssh/overlord
|
- ssh-add ~/.ssh/overlord
|
||||||
- git pull
|
- git pull
|
||||||
- ./deploy
|
- ./deploy "0.67.0"
|
||||||
when:
|
when:
|
||||||
status:
|
status:
|
||||||
- success
|
- success
|
||||||
|
|||||||
7
deploy
7
deploy
@ -1,12 +1,15 @@
|
|||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
|
|
||||||
USR=dotyaoverlord
|
USR=dotyaoverlord
|
||||||
HOST=dotya.ml
|
HOST=dotya.ml
|
||||||
DIR=public/
|
DIR=public/
|
||||||
|
HUGO_VERSION=$1
|
||||||
|
|
||||||
|
gethugo $HUGO_VERSION
|
||||||
git submodule init
|
git submodule init
|
||||||
git submodule update
|
git submodule update
|
||||||
../hugo --gc=true --minify
|
hugo version
|
||||||
|
hugo --gc=true --minify
|
||||||
|
|
||||||
if [ $USER = $USR ]; then
|
if [ $USER = $USR ]; then
|
||||||
rsync -av --delete public/ ~/${DIR}
|
rsync -av --delete public/ ~/${DIR}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user