From 87b3bc38b0768515770cedb8f3ecba4685576676 Mon Sep 17 00:00:00 2001 From: tyagian Date: Mon, 27 Apr 2026 01:00:50 -0400 Subject: [PATCH] fix workflow --- .github/workflows/publish.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 0e3b2b3..acd8dc4 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -83,9 +83,6 @@ jobs: if: inputs.target == 'test-pypi' needs: build runs-on: ubuntu-latest - environment: testpypi - permissions: - id-token: write steps: - name: Download build artifacts uses: actions/download-artifact@v4 @@ -97,6 +94,7 @@ jobs: uses: pypa/gh-action-pypi-publish@release/v1 with: repository-url: https://test.pypi.org/legacy/ + password: ${{ secrets.TEST_PYPI_API_TOKEN }} - name: Test install from TestPyPI run: | @@ -115,9 +113,7 @@ jobs: if: inputs.target == 'pypi' needs: build runs-on: ubuntu-latest - environment: pypi permissions: - id-token: write contents: write steps: - uses: actions/checkout@v4 @@ -132,6 +128,8 @@ jobs: - name: Publish to PyPI uses: pypa/gh-action-pypi-publish@release/v1 + with: + password: ${{ secrets.PYPI_API_TOKEN }} - name: Generate release notes id: notes