#!/usr/bin/env zsh
# Deploy erynwells.me to my web root
# Eryn Wells <eryn@erynwells.me>

print -P "%BFiltering .DS_Store files%b"
find . -name '.DS_Store' -print -delete

print -P "%BGenerating site%b"
hugo

echo
print -P "%BRsyncing site to nutmeg.erynwells.me%b"
rsync -avz --no-times --no-perms --delete public/ \
    eryn@nutmeg.erynwells.me:/srv/www/erynwells.me/html
