#!/usr/bin/env bash
set -euo pipefail

echo "=== Running pre-commit hooks ==="
pre-commit run --all-files

echo ""
echo "=== Building site ==="
hugo --minify

echo ""
echo "=== Deploying to server ==="
rsync -avz --delete public/ shinobi.thanwer.com:/srv/www/blog/

echo ""
echo "=== Done ==="
