all repos — gemini-redirect @ 667e5c9b84d5044f4d923ad1b9ce39b8e2423faf

Add deploy script
Lonami Exo totufals@hotmail.com
Sat, 06 Feb 2021 22:50:51 +0100
commit

667e5c9b84d5044f4d923ad1b9ce39b8e2423faf

parent

f47ed5bd788c2a29a83d6fe9c86cf3bb491f55ad

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