Skip to content

reusable-docs-publish: support deploying with GitHub Pages actions instead of a gh-pages branch #533

Done

Description

@Shinrai

reusable-docs-publish.yml (and the packaging-docs/docs.yml template) can only publish by pushing the built folder to a gh-pages branch. That needs Pages set to "Deploy from a branch", a bot-pushed branch in every repo, and a first publish before the branch exists to point Pages at.

GitHub's own deployment path doesn't need any of that: actions/configure-pages, actions/upload-pages-artifact and actions/deploy-pages, with Pages source set to "GitHub Actions". This repo already deploys its own site that way in .github/workflows/local-pages.yml.

CLDMV/uuid needs it now for a generated reference page (npm run docs:build → docs/dist). Its docs.yml copies the build-and-deploy job pair from local-pages.yml with the org's checkout, setup-node and install-dependencies actions, because the reusable workflow can't do it (CLDMV/uuid#125).

Suggested change:

  • a deploy_mode input on reusable-docs-publish.yml: branch (today's behaviour, default) or pages;
  • in pages mode: run configure-pages before the build, upload output_dir with upload-pages-artifact, and add a deploy job with pages: write, id-token: write and the github-pages environment that runs deploy-pages. No bot token or gh-pages branch is needed;
  • the caller template documents that pages mode needs pages: write and id-token: write on the calling job, and Pages source set to "GitHub Actions";
  • optionally have v4-bootstrap set the Pages source (build_type: workflow) for repos that carry docs.yml, so nobody has to change it by hand.

Once it ships, CLDMV/uuid's docs.yml can switch to the reusable workflow.

Activity

  1. added
    type: enhancement
    priority: medium
    type: ci
    status: not started
    status: in progress
    and removed
    status: not started
    on Nov 25, 2026
  2. added
    status: implemented
    and removed
    status: in progress
    on Nov 25, 2026
  3. cldmv-bot commented on Nov 25, 2026

    @cldmv-bot
    Contributor

    Marked status: implemented — resolved by #534, merged into next. This issue closes automatically when that work ships to the default branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: mediumstatus: implementedtype: citype: enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions