Error 404 on GitHub Pages

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:

  1. Checked the _config.yml file to ensure that the baseurl and url settings are configured correctly.
  2. Verified that all necessary files and folders, including the _site directory, are included in the GitHub repository.
  3. Reviewed the GitHub Actions workflow for any errors during the build and deployment process.
  4. 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!

can you share links to the repo and the not working site?

does GH show any build errors?

normally you don’t commit / upload the site folder as it is just duplicate content if GH is actually building your site from the source. But sometimes people do serve the site folder if they built it locally and then pushed it to GH - mostly if they needed to use unsupported plugins.

I haven’t noticed any errors during the GitHub Actions workflow. It seems to complete successfully without any issues. I did include the _site folder in the repository because I initially encountered some problems with unsupported plugins, but I’ve since removed those plugins to ensure compatibility with GitHub Pages’ build process.

If you have any further suggestions or if there’s anything else I can provide to assist in diagnosing the issue, please let me know. Thank you for your help! :grinning: :slightly_smiling_face:

can you share links to the repo and the not working site?