Created
March 17, 2015 12:50
-
-
Save rocknrollMarc/80b4b8b51dee69b66299 to your computer and use it in GitHub Desktop.
github-pages-deployscript
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/zsh | |
echo -e "\033[0;32mDeploying updates to GitHub...\033[0m" | |
# Building the project. | |
hugo | |
# Add changes to git. | |
git add -A | |
# Commit changes. | |
msg="rebuilding site `date`" | |
if [ $# -eq 1 ] | |
then msg="$1" | |
fi | |
git commit -m "$msg" | |
# Push source and build repos. | |
git push origin master | |
git subtree push --prefix=public [email protected]:rocknrollmarc/mampaeyService.git | |
gh-pages |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment