Github Actions
2025

How to Deploy a Hugo Site to Cloudflare Pages With Github Actions
We recently moved this website from Django to a static website made using Hugo, and
decided to use Cloudflare Pages to deploy it.
Cloudflare Pages offers automatic deployments, meaning it can automatically build
and deploy a website when changes are pushed to a GitHub branch. This is simple
to set up and works well. However, we wanted to build and deploy using GitHub
Actions instead, so that the build logs would be easily accessible on GitHub.
Cloudflare’s wrangler-action
makes it simple to set up a GitHub Actions workflow for this.