Menu

1 / 2

Build a Markdown-to-CMS Auto-Publisher With GitHub Actions

DEV Community·Aakash Gour·6 months ago
#Vf5LJdDd
#githubactions#webdev#const#frontmatter#ghost
Reading 0:00
15s threshold

I got tired of the same three-step content publish loop: write draft → open CMS → paste, format, re-paste, fight the rich-text editor, click publish. Repeat for every environment — staging, then production. For one article, fine. For a team publishing 20+ pieces a month? That workflow is a quiet tax on everyone's time.

So I wired up a pipeline that cuts the loop entirely. You commit a .md file to a Git repo. A GitHub Actions workflow runs. The article is live on WordPress, Ghost, or Webflow — formatted, tagged, and published — within 90 seconds of the push.

Here's the complete workflow, every config file, and the two places where this will bite you if you're not careful.

What You'll Actually Build

By the end of this, you'll have:

A GitHub repo that acts as your content source of truth

A GitHub Actions workflow that triggers on push to main

A Node.js publish script that parses frontmatter, transforms Markdown, and hits your CMS API

Support for WordPress (REST API), Ghost (Admin API), and Webflow (CMS…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.