Skip to content

Commit 777261e

Browse files
AgentArcLabclaude
andcommitted
ci: deploy-pages 用 if: always() 不被 publish 阻塞
workflow_dispatch 重新部署文档站时, publish 会因版本门禁失败(版本未变, 0.6.8 == PyPI 已发), 但 deploy-pages 仍应运行。if: always() 让文档部署 不被 publish 失败阻塞。 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent c720abd commit 777261e

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/publish-pypi.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,11 @@ jobs:
6363
uses: pypa/gh-action-pypi-publish@release/v1
6464

6565
# 发版时同步部署 Fumadocs 文档站到 GitHub Pages, 文档与 PyPI 版本一致。
66+
# 用 if: always() 让文档部署不被 publish 阻塞(workflow_dispatch 重新部署文档时,
67+
# publish 会因版本门禁失败(版本未变),但 deploy-pages 仍应运行)。
6668
deploy-pages:
6769
needs: publish
70+
if: always()
6871
runs-on: ubuntu-latest
6972
environment:
7073
name: github-pages

0 commit comments

Comments
 (0)