all repos — gemini-redirect @ 61be4bd4f9099c8fd4faccde0bd5b3a8db4c1ce1

deploy.sh (view raw)

 1set -e
 2zola build
 3git checkout gh-pages
 4# Forgetting to exclude `.git` has costed me several days worth of work (and over 30 commits).
 5find . -maxdepth 1 -not -name '.' -not -name '.git' -not -name 'public' -exec rm -r {} \;
 6mv public/* .
 7echo "lonami.dev" > CNAME
 8rmdir public/
 9git add .
10git commit -m "Deploy site"
11git push
12git checkout master