→ Setup CI/CD and host a Hugo website with Cloudflare
A personal website is a good fit for static hosting. Hugo turns configuration, templates, and Markdown into HTML, while Cloudflare Pages builds and serves the result at the edge. Connecting Pages to Git also provides a small CI/CD pipeline without maintaining a deployment server or workflow runner. The finished workflow is straightforward: Develop and preview the Hugo site locally. Push a branch to GitHub or GitLab. Cloudflare builds a preview deployment for the branch or pull request. Merge into main to deploy the production site. Prepare the Hugo site Install Hugo on macOS with Homebrew: