Menu

Publish a Ghost Blog to GitHub Pages with a Reusable Workflow
📰

Publish a Ghost Blog to GitHub Pages with a Reusable Workflow

DEV Community: tutorial·Fernando Paladini·6 days ago
#wTK0UXRD
#devtotutorial#devto#dev#ghost#github
Long article (1449 words) — no AI summary yet.
Reading 0:00
15s threshold

Ghost is pleasant to write in, but hosting the runtime and serving a public blog are different jobs. If you want to keep Ghost local and publish only static files, the ghost-on-github-pages-starter template gives you a small GitHub Actions entry point for that split.

This tutorial walks through the starter's current workflow. You will create a repository from the template, place a Ghost content snapshot under content/ , enable GitHub Pages, and let a reusable workflow start Ghost, export static HTML, validate it, and deploy the result.

TL;DR

Use ghost-on-github-pages-starter as the blog repository. Its workflow calls the toolkit's reusable workflow , which runs the official ghost:6 image, uses gssg to export the site, validates the generated files, and deploys a Pages artifact.…

Continue reading — create a free account

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