Skip to content

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

Open
mdo wants to merge 1 commit into
v6-devfrom
docs-deploy-workflow
Open

mdo wants to merge 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 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Inbox

Development

Successfully merging this pull request may close these issues.

1 participant