brutcss/deploy.sh
2023-11-13 11:26:43 +01:00

15 lines
329 B
Bash
Executable file

#!/usr/bin/env zsh
cd "$(git rev-parse --show-toplevel)" || exit 1
webdir="_site"
[[ -d $webdir ]] || { echo "no $webdir directory"; exit 1 }
echo -n "Uploading website"
rsync --progress\
--partial \
--delete \
--exclude '.git' \
-avHe ssh ${webdir}/ root@esy.fun:/var/www/brut.esy.fun/
echo " [done]"