How I Switched from Using GitHub to Netlify

Recently, I decided to switch my blog hosting from GitHub Pages to Netlify, and here’s why. I had set up GitHub Actions to build my Hugo site and deploy it to the gh-pages branch. We don’t use Jekyll, and I made sure GitHub Pages was configured to serve the site from the built branch — not using GitHub’s default Jekyll build system. But despite that, something odd kept happening. Just before the GitHub Action could finish and push the Hugo-built site, GitHub Pages’ default Jekyll builder would sometimes run automatically — even though we weren’t using it. The result? It would overwrite the gh-pages content, and my index.html would mysteriously vanish. ...

April 26, 2025 · 1 min · Rohan