set -e zola build git checkout gh-pages # 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/* . echo "lonami.dev" > CNAME rmdir public/ git add . git commit -m "Deploy site" git push git checkout master