Skip to content

Commit 2204e5b

Browse files
AgentArcLabclaude
andcommitted
fix(ci): publish-pypi.yml deploy-pages environment 移到 job 级
workflow 语法错误: environment 写在 step 级(actions/deploy-pages@v4 下面), 导致 workflow 解析失败(HTTP 422: Unexpected value 'environment'), release published 和 workflow_dispatch 都触发不了。 修复: environment 移到 deploy-pages job 级(deploy-pages 本就需要 github-pages environment 做 Pages 部署鉴权),step 只保留 uses: actions/deploy-pages@v4。 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent b0d87bd commit 2204e5b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/publish-pypi.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ jobs:
6161
deploy-pages:
6262
needs: publish
6363
runs-on: ubuntu-latest
64+
environment:
65+
name: github-pages
66+
url: ${{ steps.deploy.outputs.page_url }}
6467
defaults:
6568
run:
6669
working-directory: docs-site
@@ -94,6 +97,3 @@ jobs:
9497
- name: Deploy to GitHub Pages
9598
id: deploy
9699
uses: actions/deploy-pages@v4
97-
environment:
98-
name: github-pages
99-
url: ${{ steps.deploy.outputs.page_url }}

0 commit comments

Comments
 (0)