Skip to content

Instantly share code, notes, and snippets.

@maads
Created November 28, 2014 00:12
Show Gist options
  • Save maads/6ad1e0dc667cf9a8ecc7 to your computer and use it in GitHub Desktop.
Save maads/6ad1e0dc667cf9a8ecc7 to your computer and use it in GitHub Desktop.
ember-cli-publishToGithubPages
#!/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