The $0 Content Engine: My Blog Writes, Commits, and Deploys Itself Twice a Week
说明与用途
使用 GitHub Actions、Gemini 和 Next.js 静态导出实现零成本自动化博客内容生成与发布的工作流。
问题
Automating blog content creation and deployment without incurring infrastructure costs or relying on a CMS.
结果
Zero-cost, fully automated blog publishing pipeline that reliably produces and deploys content twice weekly.
工作流
- 1. Cron triggers GitHub Actions twice a week. 2. Action pulls next topic from scripts/topics.txt. 3. Python script uses google-genai SDK to call Gemini‑2.5‑flash for prose. 4. Script generates slug, date, and frontmatter, writes MDX file. 5. Script commits the new file to main. 6. Commit triggers Next.js static export. 7. GitHub Pages serves the built site for free.
证据
The pipeline's entire stack is a Git repository: topics.txt is the queue, the Git history is the database, a push is the deploy hook.
Static export + free-tier Actions minutes make the steady-state cost exactly $0.
- 记录日期: 2026-09-16T03:15:23.412Z