We have a project to easily integrate any Bootstrap theme with your GitHub Pages website. Check bootlaterus.gh-pages.
Testing a site locally
Run the following commands to install the site:
gem install bundler bundle install
Run this command to start the server:
bundle exec jekyll serve
Deploying a folder using Travis CI
You can deploy any kind of web content to a GitHub Page using the following steps:
- Install Ruby!
- Create a Travis CI account and link your repo.
- Using an account with permissions to write in the repo create a GitHub Access Token https://github.com/settings/tokens
Encrypt your token using locally on your machine the following commands:
gem install travis travis encrypt GH_TOKEN="github-token" --add
For more info you can check the section Permission to push on this article
Create a .travis.yml file on your repo and customize it:
- Travis CI - GitHub Pages docs: https://docs.travis-ci.com/user/deployment/pages/
- Example to build using grunt and then deploy to GitHub Pages when a push is made to the master branch: open example
Updating Github Pages gem
Execute the following commands:
bundle update github-pages bundle install
Equilaterus (CC-BY) 2018 - 2022.