GitHub Pages Deployment
This document explains how to deploy the website to GitHub Pages.
Local Development and GitHub Pages
Our Jekyll configuration is designed to work with both local development and GitHub Pages deployment without requiring any changes between environments.
Deployment Process
To deploy the website to GitHub Pages, follow these steps:
-
Make sure your changes are committed to the
devbranch and working correctly locally. -
Merge the
devbranch into themainbranch:
# Switch to the main branch
git checkout main
# Merge changes from dev branch
git merge dev
# Push changes to GitHub
git push origin main
- GitHub Pages will automatically build and deploy the site from the
mainbranch.
Configuration
The _config.yml file is configured to work with both local development and GitHub Pages. It does not specify a theme, as we’re using our own custom theme with our own layout files.
The Gemfile is configured to use Jekyll 4.2.2, which works for local development. GitHub Pages will use its own Jekyll environment when building the site.
Troubleshooting
If you encounter issues with the GitHub Pages build, check the following:
- Make sure the
_config.ymlfile does not specify a theme that’s not supported by GitHub Pages - Check that all required plugins are listed in the
pluginssection of_config.yml - Check the GitHub Pages build logs for any errors
- Verify that all files are properly committed to the
mainbranch