From 004b964f6aefdcbdada0e4fa1a8c27bb71ba30fd Mon Sep 17 00:00:00 2001 From: Ariejan de Vroom Date: Wed, 18 Nov 2020 20:45:17 +0100 Subject: [PATCH] add deploy file --- deploy.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 deploy.sh diff --git a/deploy.sh b/deploy.sh new file mode 100755 index 0000000..7b47c83 --- /dev/null +++ b/deploy.sh @@ -0,0 +1,16 @@ +#!/usr/bin/env bash +set -e + +echo "--> Getting ready to deploy devroom.io" + +echo " - Cleaning up" +rm -rf public/ + +echo " - Compiling" +hugo + +echo " - Uploading" +rsync -avz --delete public/ ariejan@mail.devroom.io:/home/ariejan/www/devroom.io/ + + +echo "--> Done. See the results a https://www.devroom.io" \ No newline at end of file