setup-github-pages-deploy

Generate a GitHub Actions workflow to deploy MkDocs sites to GitHub Pages.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/shuheikomatsuki/lab-seminar-skills --skill setup-github-pages-deploy
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: setup-github-pages-deploy
Source: https://github.com/shuheikomatsuki/lab-seminar-skills/tree/main/setup-github-pages-deploy
Command: npx skills add https://github.com/shuheikomatsuki/lab-seminar-skills --skill setup-github-pages-deploy

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes assets (resource) components.

What problem does it solve?

MkDocs-based seminar sites often require a reliable, repeatable deployment process to GitHub Pages. This skill adds an optional GitHub Actions workflow that automates building and publishing the site, without overwriting existing CI/CD setups.

Core Features & Use Cases

  • Adds a GitHub Actions workflow to build and deploy MkDocs sites to GitHub Pages.
  • Supports multiple deployment strategies (--method actions|gh-pages) and multiple package managers (--package-manager auto|uv|pip).
  • Validates prerequisites, can perform a dry-run, and allows configuring branch, Python version, and site URL.
  • Useful for publishing seminar sites, updating docs quickly, and preserving existing workflows.

Quick Start

Use the skill to generate a GitHub Pages deployment workflow in your repository.

Frequently Asked Questions about setup-github-pages-deploy

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate deploying an MkDocs site to GitHub Pages?

You can automate deploying an MkDocs site to GitHub Pages by adding a GitHub Actions workflow that handles building and publishing without overwriting your existing CI/CD setups. This skill generates that ready-to-commit workflow file.

Does the GitHub Pages deployment workflow support different package managers?

Yes, the GitHub Pages deployment workflow supports multiple package managers including uv and pip, alongside an auto-detection mode to accommodate different project environments and build preferences.

What is the best way to deploy MkDocs documentation without overwriting existing GitHub Actions workflows?

The best way to deploy MkDocs documentation without overwriting existing GitHub Actions workflows is to add an optional workflow file that handles publishing independently. This skill validates prerequisites and outputs a separate, ready-to-commit workflow file.

Can I use GitHub Actions instead of the gh-pages branch method to deploy MkDocs?

Yes, you can select between deployment strategies when deploying MkDocs by specifying either the GitHub Actions method or the traditional gh-pages branch method to match your repository's publishing configuration.

Do I need to configure GitHub Pages settings before deploying an MkDocs site?

You need to ensure your repository meets the prerequisites for publishing. This skill handles configuring Pages settings and allows you to specify the branch, Python version, and site URL for the deployment workflow.

Can I perform a dry-run before committing the GitHub Pages deployment workflow?

Yes, you can perform a dry-run to validate the deployment workflow generation process. This allows you to verify prerequisites and configuration choices before outputting the final ready-to-commit workflow file.