From 978bf9ea0497ec072149afd6dd5d1dfda734b8e3 Mon Sep 17 00:00:00 2001 From: surtur Date: Wed, 11 Mar 2020 21:32:57 +0100 Subject: [PATCH] added hugo updater ref to the deploy script --- .drone.yml | 2 +- deploy | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index 396419f..dbb9014 100644 --- a/.drone.yml +++ b/.drone.yml @@ -37,7 +37,7 @@ steps: - eval $(ssh-agent) - ssh-add ~/.ssh/overlord - git pull - - ./deploy + - ./deploy "0.67.0" when: status: - success diff --git a/deploy b/deploy index 3fcb881..d1e41c2 100755 --- a/deploy +++ b/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}