I’m encountering an issue with deploying my Jekyll site to GitHub Pages, and I could use some assistance in resolving it.
Background: I’ve been using Jekyll to build and maintain my personal website, and I’ve been deploying it to GitHub Pages without any major issues until recently.
Issue: After making some updates to my site locally and pushing the changes to the main branch of my GitHub repository, I noticed that the site isn’t updating as expected on GitHub Pages. Instead, when I visit my site’s URL, I’m greeted with a 404 error page indicating that the requested page couldn’t be found.
Troubleshooting: Here are the steps I’ve taken to troubleshoot the issue so far:
- Checked the
_config.ymlfile to ensure that thebaseurlandurlsettings are configured correctly. - Verified that all necessary files and folders, including the
_sitedirectory, are included in the GitHub repository. - Reviewed the GitHub Actions workflow for any errors during the build and deployment process.
- Checked the GitHub Pages settings in the repository’s settings tab to ensure that the correct branch (
main) and folder (/) are selected for deployment.
Observations: Despite these efforts, the 404 error persists, and I’m unable to access my site on GitHub Pages. Interestingly, when I build the site locally and preview it using bundle exec jekyll serve, everything appears to be working fine.
Request for Assistance: If anyone has encountered a similar issue or has suggestions for additional troubleshooting steps, I would greatly appreciate your insights. I’m eager to get my site back up and running on GitHub Pages as soon as possible.
Thank you for your help!