Add deploy script
Lonami Exo totufals@hotmail.com
Sat, 06 Feb 2021 22:50:51 +0100
1 files changed,
10 insertions(+),
0 deletions(-)
jump to
A
deploy.sh
@@ -0,0 +1,10 @@
+set -e +zola build +# Forgetting to exclude `.git` has costed me several days worth of work (and over 30 commits). +find . -maxdepth 1 -not -name '.' -not -name '.git' -not -name 'public' -exec rm -r {} \; +mv public/* . +rmdir public/ +git add . +git commit --amend -m "Deploy site" +git push --force +git checkout master