#!/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
