1.2.11 • Published 9 years ago
gh-pages-deploy-sh v1.2.11
gh-pages-deploy-sh
This shell script wrapper for deploy to gh-pages.
Installation
npm install -D gh-pages-deploy-sh
Usage
$ gh-pages-deploy-sh directory
1. Add "gh-pages-deploy-sh" to npm run-script.
"scripts": {
"deploy": "gh-pages-deploy-sh dist/"
},
2. Add GH_TOKEN
to .travis.yml
gem install travis
travis encrypt GH_TOKEN=<your github personal token> --add
3. git push
Automatically deploy to gh-pages
:tada:
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
License
MITg