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)
|
||||
- ssh-add ~/.ssh/overlord
|
||||
- git pull
|
||||
- ./deploy
|
||||
- ./deploy "0.67.0"
|
||||
when:
|
||||
status:
|
||||
- success
|
||||
|
7
deploy
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}
|
||||
|
Loading…
Reference in New Issue
Block a user