Skip to content

Commit 6b1d193

Browse files
authored
Bump up gh-action-pypi-publish to v1.9.0 (#133)
Remove use of token, use trusted provider instead: https://github.com/pypa/gh-action-pypi-publish/?tab=readme-ov-file#trusted-publishing
1 parent 19cc928 commit 6b1d193

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/publish-to-pypi.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ jobs:
1515
build-n-publish:
1616
name: Build and publish Python 🐍 distributions 📦 to PyPI
1717
runs-on: ubuntu-latest
18+
permissions:
19+
id-token: write # OIDC for PyPi Trusted Publisher feature
1820
steps:
1921
- uses: actions/checkout@v3
2022
- name: Set up Python 3.10
@@ -36,6 +38,4 @@ jobs:
3638
- name: Build a binary wheel
3739
run: python setup.py sdist bdist_wheel
3840
- name: Publish distribution 📦 to PyPI
39-
uses: pypa/[email protected]
40-
with:
41-
password: ${{ secrets.PYPI_API_TOKEN }}
41+
uses: pypa/[email protected]

0 commit comments

Comments
 (0)