Skip to content

Commit

Permalink
Switched upload to pypi to trusted publisher
Browse files Browse the repository at this point in the history
  • Loading branch information
ndilalla committed May 13, 2024
1 parent 7c13c25 commit 4d01903
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ jobs:
name: Publish to PyPi
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
runs-on: ubuntu-latest
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
steps:
- name: Checkout source
uses: actions/checkout@v4
Expand All @@ -31,10 +34,8 @@ jobs:
pip install wheel setuptools -U
python setup.py sdist
- name: Publish
uses: pypa/gh-action-pypi-publish@v1.1.0
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}
skip-existing: true

test-publish-pypi:
Expand Down Expand Up @@ -173,7 +174,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, macos-12]
os: [ubuntu-latest, macos-latest]
python-version: [3.9]

steps:
Expand Down

0 comments on commit 4d01903

Please sign in to comment.