From b94b92e5a5daa5c95f960206eeeabab2ef7006c9 Mon Sep 17 00:00:00 2001 From: Tom Cobb Date: Fri, 19 Jun 2026 13:46:12 +0000 Subject: [PATCH] _release.yml: attach exactly version-switcher.mjs + docs.zip The files: "*" upload was grabbing repo root files and missing the nested plugin (sparse-checkout cone mode pulls root files; "*" doesn't recurse into plugins/). Check out into a dot-dir (.src) so the glob skips it, copy just the plugin to the cwd root next to the downloaded docs.zip, and keep files: "*". Co-Authored-By: Claude Opus 4.8 --- .github/workflows/_release.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/_release.yml b/.github/workflows/_release.yml index 841292e..b50703c 100644 --- a/.github/workflows/_release.yml +++ b/.github/workflows/_release.yml @@ -6,12 +6,17 @@ jobs: runs-on: ubuntu-latest steps: - # Version switcher file deployed straight from depo + # The version-switcher plugin is the one asset that comes from the repo (not + # a build artifact). Check it out into a dot-dir — the `files: "*"` glob below + # only sees the cwd root and skips leading-dot paths — then copy just that file + # to the root, so the upload is exactly {version-switcher.mjs, docs.zip}. - uses: actions/checkout@v5 with: + path: .src sparse-checkout: plugins/version-switcher.mjs + - run: cp .src/plugins/version-switcher.mjs . - # All other release artifacts from other stages + # All other release artifacts from other stages (docs.zip). - name: Download artifacts uses: actions/download-artifact@v5 with: