The $0 Content Engine: My Blog Writes, Commits, and Deploys Itself Twice a Week
Description and use
An automated pipeline that writes, commits, and deploys blog posts for free using GitHub Actions, Gemini, and Next.js static export.
Problem
Automating blog content creation and deployment without incurring infrastructure costs or relying on a CMS.
Outcome
Zero-cost, fully automated blog publishing pipeline that reliably produces and deploys content twice weekly.
Workflow
- 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.
Evidence
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.
- Record date: 2026-09-16T03:15:23.412Z