Skip to content

Commit

Permalink
Use pypa/gh-actions-pypi-publish for releasing with trusted publishers
Browse files Browse the repository at this point in the history
  • Loading branch information
dnerini committed Mar 5, 2024
1 parent 098927d commit 43c757f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ jobs:
deploy:

runs-on: ubuntu-latest
permissions:
id-token: write

steps:
- uses: actions/checkout@v3
Expand All @@ -21,11 +23,9 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine numpy cython
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
pip install setuptools wheel numpy cython
- name: Build
run: |
python setup.py sdist
twine upload dist/*.tar.gz
- name: Publish
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 43c757f

Please sign in to comment.