Tuesday, 1 September 2015

Travis CI auto push gh-pages with grunt

Get the token

Go here https://github.com/settings/tokens and get the personal token. Check public_repo for public repositories.

Encrypt it with travis encrypt



Place it in secure in .travis.yml




Create package.json


Be sure to have grunt,grunt-gh-pages,and grunt-contrib-copy as dev dependencies.


Create Gruntfile.js


You need to copy correct files to the correct directory which is 'dist' with
grunt-contrib-copy.




Enjoy.

No comments:

Post a Comment