Skip to content

Commit 5f9e118

Browse files
committed
ci(workflow): 更新发布流程使用uvx替代uv
将构建和发布命令从uv改为uvx,以兼容更多构建场景
1 parent 177e205 commit 5f9e118

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ jobs:
2020

2121
- name: Setup uv
2222
uses: astral-sh/setup-uv@v1
23-
- name: Build project for distribution with uv
24-
run: uv build
23+
- name: Build project for distribution with uvx
24+
run: uvx --from build python -m build
2525

2626
- name: Check Version
2727
id: check-version
@@ -43,4 +43,4 @@ jobs:
4343
- name: Publish to PyPI
4444
env:
4545
UV_PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
46-
run: uv publish --token $UV_PYPI_TOKEN
46+
run: uvx --from twine twine upload --non-interactive -u __token__ -p $UV_PYPI_TOKEN dist/*

0 commit comments

Comments
 (0)