Skip to content

Commit 6bfe3ae

Browse files
committed
🔧 Switch from Trusted Publishing to API Token
- Remove environment requirement for PyPI publishing - Use PYPI_API_TOKEN secret for authentication - Simplify publish workflow for better reliability
1 parent f0e855c commit 6bfe3ae

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

‎.github/workflows/publish.yml‎

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,6 @@ jobs:
3434
publish:
3535
needs: test
3636
runs-on: ubuntu-latest
37-
environment: pypi # Add environment for trusted publishing
38-
permissions:
39-
id-token: write # Required for trusted publishing
40-
contents: read
4137
steps:
4238
- uses: actions/checkout@v4
4339

@@ -59,5 +55,7 @@ jobs:
5955
run: |
6056
twine check dist/*
6157
62-
- name: Publish to PyPI (Trusted Publishing)
63-
uses: pypa/gh-action-pypi-publish@release/v1
58+
- name: Publish to PyPI
59+
uses: pypa/gh-action-pypi-publish@release/v1
60+
with:
61+
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)