-
-
Save sgasser/db4208daf2b0a689f744 to your computer and use it in GitHub Desktop.
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
| #!/bin/bash | |
| git branch -D gh-pages | |
| git push origin --delete gh-pages | |
| git checkout -b gh-pages | |
| ember build --environment production | |
| find . ! -name .git ! -name publishToGithubPages.sh ! -name dist -maxdepth 1 -exec rm -rf {} \; | |
| mv dist/* . | |
| rm -rf dist | |
| git add --all . | |
| git reset HEAD publishToGithubPages.sh | |
| git commit -m "Publishing to github pages" | |
| git push origin gh-pages | |
| git checkout master | |
| npm install && bower install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment