Skip to content

Instantly share code, notes, and snippets.

@FutoRicky
Last active October 30, 2015 03:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FutoRicky/5176180eb1b380c33272 to your computer and use it in GitHub Desktop.
Save FutoRicky/5176180eb1b380c33272 to your computer and use it in GitHub Desktop.
publish ember-cli addon in github pages

// apps: config/environment.js

// addons: tests/dummy/config/environment.js

if (environment === 'production') {
  
  ENV.baseURL = '/projectname';
  
}

ember build --environment production

git checkout -b gh-pages

git rm -rf app addon config 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