Created
August 28, 2016 16:09
-
-
Save marcelod/3c38b3ea07600c061af3cf2b74ff0f69 to your computer and use it in GitHub Desktop.
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/sh | |
echo $DEPLOYING | |
if [ -z "$DEPLOYING" ]; then | |
echo 'Deploying site...' | |
export DEPLOYING='yes' | |
git checkout gh-pages | |
git merge master | |
git push origin gh-pages | |
git checkout master | |
unset -v DEPLOYING | |
echo 'done!' | |
fi | |
// usado para quando fizer o push no master no github já automaticamente enviar para o branch gh-pages e fazer um merge no mesmo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment