gmgauthier.com/publish.sh

18 lines
410 B
Bash
Raw Normal View History

#!/usr/bin/env sh
2021-04-06 18:57:16 +00:00
# commit and push...
git add .;git commit -m"$@";git push -u origin master
# build the site
2021-04-06 19:14:30 +00:00
hugo
# push the files
cd public
scp -rp * root@boethius:/hosting/sites/gmgauthier.com
echo "chown -R www-data:www-data /hosting/sites/gmgauthier.com" | ssh root@boethius /bin/bash
echo "ls -la /hosting/sites/gmgauthier.com" | ssh root@boethius /bin/bash
# remove the old build
cd ..
rm -R public