Sync GitHub Markdown docs with StudioCMS pages and taxonomy
UnknownUnknown. This template uses community nodes we can't verify statically. Uses community nodes that can't be verified statically (unverified community packages are off by default in 3.0). Static check, last run 2026-10-19.
Community nodes
These come from third-party npm packages. In n8n 3.0 unverified community packages are off by default (N8N_UNVERIFIED_PACKAGES_ENABLED=false).
@blackswampai/n8n-nodes-studiocms(Retrieve StudioCMS Folders, Fetch StudioCMS Categories, Retrieve StudioCMS Tags, Fetch Existing StudioCMS Pages, Sync StudioCMS Folders, Update StudioCMS Categories, Refresh StudioCMS Tags, Add New StudioCMS Page, Modify Existing StudioCMS Page, Draft Missing StudioCMS Page, Add Missing StudioCMS Folder, Add Missing StudioCMS Category, Add Missing StudioCMS Tag)
Nodes used (8)
- Manual Trigger
n8n-nodes-base.manualTrigger - Edit Fields (Set)
n8n-nodes-base.set - GitHub
n8n-nodes-base.github - Code
n8n-nodes-base.code - Switch
n8n-nodes-base.switch - Studio Cms
@blackswampai/n8n-nodes-studiocms.studioCms - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - No Operation, do nothing
n8n-nodes-base.noOp
What it does
Quick overview This workflow manually syncs a GitHub directory of Markdown/MDX files to StudioCMS by parsing frontmatter, creating missing folders/categories/tags, and then creating, updating, skipping, or drafting pages based on slug comparisons. How it works 1. Starts when you manually trigger a deployment. 2. Lists files from the configured GitHub repository directory and continues only if Markdown/MDX files are found. 3. Downloads each Markdown/MDX file from GitHub, decodes it, and parses YAML-style frontmatter to derive page fields like title, slug, folder, categories, tags, and draft status. 4. Validates the collection (including duplicate slug detection) and loads the current StudioCMS folders, categories, tags, and pages. 5. Creates any missing StudioCMS folders, categories, and tags needed by the valid Markdown documents, then refreshes the StudioCMS taxonomy lists. 6. Compares each document to existing StudioCMS pages by slug to plan and apply creates/updates/skips, and optionally marks missing managed pages as drafts when configured. 7. Produces a deployment report summarizing created, updated, drafted, skipped, and errored items. Setup 1. Add GitHub API credentials and select them in the GitHub nodes that list and fetch repository files. 2. Add StudioCMS API credentials and select them in all StudioCMS nodes that read and write folders, categories, tags, and pages. 3. In the GitHub source configuration, set the repository owner, repository name, and source directory path containing your flat Markdown/MDX collection. 4. Ensure each Markdown/MDX file has unique slugs (via frontmatter slug or its filename) and optional frontmatter fields you want synced (for example folder, categories, tags, draft, and showOnNav). 5. If you enable orphan drafting, set draftMissingPages to true and provide a non-empty managedSlugPrefix so only pages with that prefix are considered for drafting.