Skip to content

Instantly share code, notes, and snippets.

@sgasser
Forked from maads/gist:6ad1e0dc667cf9a8ecc7
Last active August 29, 2015 14:12
Show Gist options
  • Select an option

  • Save sgasser/db4208daf2b0a689f744 to your computer and use it in GitHub Desktop.

Select an option

Save sgasser/db4208daf2b0a689f744 to your computer and use it in GitHub Desktop.
#!/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