Last active
July 12, 2016 00:41
-
-
Save sbussard/c97d5aa7ec5adddf6da3570ef9f163d3 to your computer and use it in GitHub Desktop.
push build output to github pages
This file contains hidden or 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
#!/usr/bin/env bash | |
BUILD_DIR=build | |
git checkout -b _build_staging_ | |
git add -f $BUILD_DIR | |
git commit -am add_build_ouput | |
git subtree split --prefix $BUILD_DIR -b gh-pages | |
git push origin gh-pages -f | |
git checkout - | |
git branch -D gh-pages _build_staging_ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
CAUTION: this will delete your gh-pages branch if you have one.