From 3522b3efcc879a7238c6309ede2673f4bd75b27d Mon Sep 17 00:00:00 2001 From: HsiangNianian Date: Wed, 31 Dec 2025 18:33:01 +0800 Subject: fix: update publish workflow to use uv for installing twine and publishing to TestPyPI --- .github/workflows/publish.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 322f254..71fd1ea 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -110,14 +110,18 @@ jobs: name: dist path: dist/ - - name: Install twine - run: pip install twine + - name: Install uv + run: | + curl -LsSf https://astral.sh/uv/install.sh | sh + echo "$HOME/.local/bin" >> $GITHUB_PATH + - name: Publish to TestPyPI env: TWINE_USERNAME: __token__ TWINE_PASSWORD: ${{ secrets.TEST_PYPI_TOKEN }} run: | - twine upload --repository testpypi --skip-existing --verbose dist/* + uv pip install twine + uv run twine upload --repository testpypi --skip-existing --verbose dist/* publish-pypi: name: Publish to PyPI -- cgit v1.2.3-70-g09d2