Commit 2204e5b
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
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
64 | 67 | | |
65 | 68 | | |
66 | 69 | | |
| |||
94 | 97 | | |
95 | 98 | | |
96 | 99 | | |
97 | | - | |
98 | | - | |
99 | | - | |
0 commit comments