add deploy file

This commit is contained in:
Ariejan de Vroom 2020-11-18 20:45:17 +01:00
parent c1c3095c1a
commit 004b964f6a
Signed by: ariejan
GPG Key ID: AD739154F713697B

16
deploy.sh Executable file
View File

@ -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"