Created
November 28, 2014 00:12
-
-
Save maads/6ad1e0dc667cf9a8ecc7 to your computer and use it in GitHub Desktop.
ember-cli-publishToGithubPages
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 branch -D gh-pages | |
git push origin --delete gh-pages | |
git checkout -b gh-pages | |
ember build --environment production | |
git rm -rf app config public tests | |
git rm -rf Brocfile.js bower.json package.json testem.json | |
git rm -rf .bowerrc .editorconfig .jshintrc .travis.yml | |
mv dist/* . | |
rm -rf dist | |
git add . | |
git commit -m "Publishing to github pages" | |
git push origin gh-pages | |
git checkout master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment