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
-
Fork this project to start making your web page.
-
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 checkedrepo
permission. -
Tap
Generate token
button below all permissions. Then copy the generated token.
-
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. -
Tap the gear icon near the project name or visit
https://travis-ci.org/[user name]/[project name]/settings
Add a environment variableGH_TOKEN
with the key you got from githubGenerate Token
function.
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]
.