hugo-deploy/hugo-deploy.sh
2022-03-14 06:50:06 +05:30

8 lines
149 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