Steps
- set up Cloudflare account at https://dash.cloudflare.com
- follow the steps here https://developers.cloudflare.com/pages/framework-guides/deploy-a-hugo-site/
- remove the base URL or change the settings mentioned in the above article (haven’t tested the latter)
- add custom domain
Now whenever you push to GitHub, there is a new build.
Gotchas
- Set HUGO_VERSION as env variable (see also)
- Remove base url from config