all repos — gemini-redirect @ a426696024418031df1f0b35f4a364f9fe47881a

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