Skip to content

Commit

Permalink
📦 Set up verified publisher python publication job
Browse files Browse the repository at this point in the history
  • Loading branch information
sergei-maertens committed May 17, 2024
1 parent a85bdc2 commit b51573e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ jobs:
name: Publish package to PyPI
runs-on: ubuntu-latest
needs: tests
environment: release
permissions:
id-token: write

if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')

Expand All @@ -71,8 +74,6 @@ jobs:
run: |
pip install pip setuptools wheel --upgrade
python setup.py sdist bdist_wheel
- name: Publish a Python distribution to PyPI
uses: pypa/[email protected]
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit b51573e

Please sign in to comment.