all repos — gemini-redirect @ b6b1d243404ad1c9f774fde8596c11a249b748cb

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