Overview
This website operates in a serverless environment.
To publish a post, I simply edit the Markdown files in the GitHub repository through the GitHub website.
Static pages are generated using Hugo, stored in a private GitHub repository, and deployed via the Cloudflare Pages service.
Workflow Diagram
Step-by-Step Instructions
-
Edit Markdown Files
Modify the Markdown files in the GitHub repository directly on the GitHub website. -
Trigger GitHub Actions
When changes are committed to thePost-Branch
, a GitHub Actions workflow is triggered. This workflow uses the Hugo application to generate the static website files and pushes them to theProd-branch
(Production). -
Deploy with Cloudflare Pages
Cloudflare Pages automatically detects new commits to theProd-branch
, copies the updated website files, and deploys the changes. -
Publish and Protect
The website is served globally via Cloudflare’s CDN and safeguarded by Cloudflare’s WAF.