Files
lancedb/.github
Xuanwo 2806709b75 fix(ci): hand off Pages artifact to a separate deploy job (#5236)
The docs workflow uploads `github-pages` and deploys in the same job. On
`0adfd22`, attempt 1 finished the upload and the deploy immediately
found zero artifacts; attempt 2 uploaded again and the deploy found two
artifacts with the same name. Four earlier main runs show the same
zero-artifact race.

This uploads the site as `github-pages-<run_id>-<run_attempt>`, exposes
that name as a `build` job output, and deploys from a separate `needs:
build` job using the same name. A full workflow re-run gets a fresh
name, while a deploy-only retry keeps the original build output and
reuses the artifact uploaded by that build.

The existing action pins already expose the required inputs (`name` on
`upload-pages-artifact`, `artifact_name` on `deploy-pages`), so this
does not bump actions. Workflow triggers, permissions, concurrency, docs
build steps, and the Pages environment URL are unchanged.

Validation: `actionlint .github/workflows/docs.yml`, YAML parsing, and
`git diff --check` pass locally. Hosted checks run on this PR; the
actual Pages upload and deploy are verified on main after merge because
the workflow only deploys from `main`.

Evidence:
- [attempt
1](https://github.com/lancedb/lancedb/actions/runs/45805006874/job/139857949931):
upload succeeded, deploy logged `Found 0 artifact(s)`.
- [attempt
2](https://github.com/lancedb/lancedb/actions/runs/45805006874/job/139875545904):
upload succeeded, deploy logged `Found 2 artifact(s)` and failed with
`Multiple artifacts named "github-pages" were unexpectedly found`.
- Earlier main runs with the same zero-artifact result:
[45724226049](https://github.com/lancedb/lancedb/actions/runs/45724226049),
[45706607284](https://github.com/lancedb/lancedb/actions/runs/45706607284),
[45700962558](https://github.com/lancedb/lancedb/actions/runs/45700962558),
[45687315855](https://github.com/lancedb/lancedb/actions/runs/45687315855).
2026-11-26 20:24:14 +08:00
..