Skip to content

Add a manual workflow to deploy the docs to gh-pages - #42922

Merged
mdo merged 1 commit into
v6-devfrom
docs-deploy-workflow
Sep 29, 2026
Merged

mdo merged 1 commit into
v6-devfrom
docs-deploy-workflow

Conversation

@mdo

@mdo mdo commented Sep 11, 2026

Copy link
Copy Markdown
Member

Deploying the docs meant building the site and pushing it to gh-pages by hand. This adds a manual workflow and retires release-drafter.

  • Add .github/workflows/docs-deploy.yml, a workflow_dispatch job that runs npm run dist and npm run docs-build, then copies _site/ over a gh-pages checkout with rsync.
  • Omit --delete from the rsync, so every older docs/<version> directory survives while the root files and the current version get replaced. Each build holds one version only.
  • Use no third-party actions. GitHub's own Pages actions (actions/upload-pages-artifact and actions/deploy-pages) replace the whole site on each deploy, so they cannot keep the version archive, and they need the Pages source moved off the branch.
  • Skip the commit when the built site matches gh-pages.
  • Delete .github/workflows/release-notes.yml and .github/release-drafter.yml. The release UI generates the notes now.
  • Add .github/release.yml so the generated notes keep the same label categories the drafter used.
  • Add nojekyll to .cspell.json for the new workflow.

Dispatch the workflow from the branch you want to publish, for example gh workflow run docs-deploy.yml --ref v6-dev.

Publishing the docs meant building the site and pushing it to gh-pages by
hand. This adds a workflow_dispatch job that builds the site, then copies it
over a gh-pages checkout with rsync. The copy omits --delete, so every older
docs/<version> directory survives while the root files and the current version
get replaced.

The job uses no third-party actions. GitHub's own Pages actions replace the
whole site on each deploy, so they cannot keep the version archive.

Also drop release-drafter. The release UI now generates the notes, and
.github/release.yml keeps the same label categories.
@mdo mdo added meta The repository itself: templates, guidelines, config ci GitHub workflows and CI checks labels Sep 11, 2026
@mdo mdo added this to v6.0.0 Sep 11, 2026
@github-project-automation github-project-automation Bot moved this to Inbox in v6.0.0 Sep 11, 2026
willbyers1

This comment was marked as spam.

@mdo
mdo merged commit 708c720 into v6-dev Sep 29, 2026
12 checks passed
@mdo
mdo deleted the docs-deploy-workflow branch September 29, 2026 05:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci GitHub workflows and CI checks meta The repository itself: templates, guidelines, config

Projects

Status: Inbox

Development

Successfully merging this pull request may close these issues.

2 participants