Skip to content

Instantly share code, notes, and snippets.

@marcelod
Created August 28, 2016 16:09
Show Gist options
  • Save marcelod/3c38b3ea07600c061af3cf2b74ff0f69 to your computer and use it in GitHub Desktop.
Save marcelod/3c38b3ea07600c061af3cf2b74ff0f69 to your computer and use it in GitHub Desktop.
#!/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