Skip to content

ci(docs): restore auto-deploy to UniLab-doc gh-pages on push to main - #1503

Merged
TATP-233 merged 1 commit into
mainfrom
ci/restore-docs-auto-deploy
Sep 4, 2026
Merged

ci(docs): restore auto-deploy to UniLab-doc gh-pages on push to main#1503
TATP-233 merged 1 commit into
mainfrom
ci/restore-docs-auto-deploy

Conversation

@TATP-233

@TATP-233 TATP-233 commented Sep 4, 2026

Copy link
Copy Markdown
Collaborator

背景

文档站点 unilabsim.github.io/UniLab-doc 自 2026-06-04 起停更。a2f2994b(docs: make docs ci prose-only)移除了 docs.yml 中的 deploy job 后,发布变成纯手动流程,3 个月无人执行。

改动

  • .github/workflows/docs.yml:恢复 deploy job —— push 到 main(或在 main 上 workflow_dispatch)时,在 prose-only 检查构建通过后执行完整 Sphinx 构建(安装 UniLab、启用 autodoc;安装失败自动降级 prose-only 并仍然部署),通过既有的 UNILAB_DOC_DEPLOY_KEY secret 推送到 unilabsim/UniLab-docgh-pages 分支,GitHub Pages 自动更新站点。PR 检查保持轻量 prose-only build 不变。
  • docs/sphinx/README.md:CI/部署一节更新为自动部署描述,本地手动发布流程保留为 fallback。

Validation

  • 本地 make test-all 在最终 head(3c6d3554)通过:lint 全过,1568 passed, 20 skipped, 1 xfailed
  • uv run pytest tests/scripts/test_check_docs.py -q:20 passed
  • 本地完整 Sphinx 构建(sphinx-build -j auto -b html -n source build/html,含 autodoc)成功,验证 deploy job 的构建步骤可用;191 条警告均为既有内容警告,不阻塞(未启用 -W)
  • workflow YAML 语法校验通过

备注

  • UNILAB_DOC_DEPLOY_KEY secret 仍在仓库设置中(更新于 2026-05-27),无需重新配置。
  • 合并此 PR 本身即会触发一次自动部署(本 PR 改动了 docs.yml,在 paths 过滤范围内),可即时验证站点恢复更新。

The deploy job removed in a2f2994 is restored: after the prose-only
check build passes on main, a deploy job runs the full Sphinx build
(UniLab installed, autodoc enabled, prose-only fallback on install
failure) and pushes to unilabsim/UniLab-doc gh-pages via the existing
UNILAB_DOC_DEPLOY_KEY secret. workflow_dispatch on main takes the same
path; the manual local publish flow stays as fallback.
@TATP-233
TATP-233 merged commit 0dd9ad2 into main Sep 4, 2026
8 checks passed
@TATP-233
TATP-233 deleted the ci/restore-docs-auto-deploy branch September 4, 2026 20:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant