From 6f9991d0200f04b1aedd198f67e6ac6537e21eb3 Mon Sep 17 00:00:00 2001 From: HsiangNianian Date: Wed, 31 Dec 2025 18:14:33 +0800 Subject: fix: update TestPyPI publish step to use environment variables and run command --- .github/workflows/publish.yml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index a684228..bc8aefe 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -111,13 +111,11 @@ jobs: path: dist/ - name: Publish to TestPyPI - uses: pypa/gh-action-pypi-publish@release/v1 - with: - repository-url: https://test.pypi.org/legacy - password: ${{ secrets.TEST_PYPI_TOKEN }} - skip-existing: true - verbose: true - attestations: false + env: + TWINE_USERNAME: __token__ + TWINE_PASSWORD: ${{ secrets.TEST_PYPI_TOKEN }} + run: | + uv run twine upload --repository-url https://test.pypi.org/legacy/ --skip-existing --verbose dist/* publish-pypi: name: Publish to PyPI -- cgit v1.2.3-70-g09d2