Use github as a web host is that easy. This template provide essential configurations to auto deploy your github repo to gh-pages via Travis CI
Shell HTML
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
.travis.yml
LICENSE
README.md
deploy.sh
index.html

README.md

ghpage-auto-deploy

Use github as a web host is that easy. This template provide essential configurations to auto deploy your github repo to gh-pages via Travis CI

Build Status

Setup

Generate Github token

  1. Fork this project to start making your web page.

  2. Visit https://github.com/settings/tokens , click generate new token button at top right to generate new token. Or use this link directly. Make sure you've checked repo permission.

  3. Tap Generate token button below all permissions. Then copy the generated token.

Setup Travis integration

  1. Visit your Travis profile to enable the project integration https://travis-ci.org/profile/[user name] If you haven't use Travis, don't worry about it, you can just use github account to login Travis.

  2. Tap the gear icon near the project name or visit https://travis-ci.org/[user name]/[project name]/settings Add a environment variable GH_TOKEN with the key you got from github Generate Token function.

Configure .travis.yml

Check .travis.yml in the forked project and replace git related settings to fit your info.

All set! Commit anything in your project and the project will be auto deployed to gh-pages!

Visit your project web page as https://[user name].github.io/[project name].