all repos — gemini-redirect @ zola

deploy.sh (view raw)

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