hugo-deploy/hugo-deploy.sh
2023-06-18 10:28:44 +05:30

8 lines
150 B
Bash

#!/bin/sh
USER=remote-user
HOST=remote-host.tld
DIR=/remote/deployment/directory
hugo && rsync -Pavz --delete public/ ${USER}@${HOST}:${DIR}
exit 0