Created
September 20, 2016 13:56
-
-
Save yetti/347c64281de97d329a4e52e5e3b1402d to your computer and use it in GitHub Desktop.
Deploys Hugo site to Github master branch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo -e "\033[0;32mDeploying updates to GitHub...\033[0m" | |
# Add changes to git. | |
git add -A | |
# Commit changes. | |
msg="deploying updates `date`" | |
if [ $# -eq 1 ] | |
then msg="$1" | |
fi | |
git commit -m "$msg" | |
# Push source and build repos. | |
git push origin master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment