#!/usr/bin/env bash set -e git checkout master git fetch git merge --ff-only origin/master nix-shell --command "make clean install build" git checkout -b deploy git add --force public git commit -m "deploy $(date +%Y-%m-%d)" git push --force origin deploy git checkout master git branch -D deploy