Skip to content

Commit

Permalink
Update python-publish.yml
Browse files Browse the repository at this point in the history
Switch to PyPI Trusted Publisher package distribution
  • Loading branch information
surenkov committed Dec 20, 2024
1 parent 6afa93f commit d83f5d8
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,12 @@ permissions:
contents: read

jobs:
publish:
pypi-publish:
name: upload release to PyPI
runs-on: ubuntu-latest
environment: release
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- name: Set up Python
Expand All @@ -22,8 +26,5 @@ jobs:
python -m pip install build
- name: Build package
run: python -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit d83f5d8

Please sign in to comment.