Skip to content

Commit 50f27d4

Browse files
committed
feat: 添加PyPI发布条件限制
- 只在原仓库master分支推送时执行PyPI发布 - 避免fork仓库因缺少认证而失败 - 保持工作流完整性和可测试性
1 parent 71498a6 commit 50f27d4

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.github/workflows/wheels.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ jobs:
6363
python -m build
6464
6565
- name: Publish on pypi.org
66+
if: github.ref == 'refs/heads/master' && github.repository == 'wenet-e2e/WeTextProcessing'
6667
env:
6768
TWINE_USERNAME: __token__
6869
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)