Skip to content

Instantly share code, notes, and snippets.

@ben196888
Created November 8, 2017 23:05
Show Gist options
  • Save ben196888/3e77b5379a8342f3c5d620fe8abf761a to your computer and use it in GitHub Desktop.
Save ben196888/3e77b5379a8342f3c5d620fe8abf761a to your computer and use it in GitHub Desktop.
#!/bin/sh
REMOTE=${1:-'origin'}
echo "git fetch $REMOTE"
git fetch $REMOTE
echo "git checkout $REMOTE/master"
git checkout $REMOTE/master
echo "yarn run build"
yarn run build
echo "gh-pages -o $REMOTE -d build"
gh-pages -o $REMOTE -d build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment