Created
May 6, 2014 05:03
-
-
Save davidhellsing/b7deb968e450f1d87d46 to your computer and use it in GitHub Desktop.
Deploy dist directory to gh-pages
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/bash | |
git add . | |
git commit -am 'master deploy' | |
git checkout gh-pages | |
git checkout master -- dist | |
rsync -a -v dist/ ./ | |
rm -rf dist | |
git add . | |
git commit -am 'page deploy' | |
git push | |
git checkout master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment