From e84af2657916f7a4a23d4dffadf58e52e1f4720d Mon Sep 17 00:00:00 2001 From: HsiangNianian Date: Wed, 31 Dec 2025 17:56:34 +0800 Subject: fix: remove unnecessary permissions and update TestPyPI publish step --- .github/workflows/publish.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 599798d..43551c5 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -95,9 +95,6 @@ jobs: name: test-pypi url: https://test.pypi.org/project/${{ github.sha }}/ - permissions: - id-token: write - steps: - name: Checkout code uses: actions/checkout@v6 @@ -130,6 +127,8 @@ jobs: uses: pypa/gh-action-pypi-publish@release/v1 with: repository-url: https://test.pypi.org/legacy/ + username: __token__ + password: ${{ secrets.TEST_PYPI_API_TOKEN }} publish-pypi: name: Publish to PyPI -- cgit v1.2.3-70-g09d2