Skip to content

Commit

Permalink
CICD: Switch to trusted publisher based release
Browse files Browse the repository at this point in the history
  • Loading branch information
RUrlus committed Apr 25, 2024
1 parent 0c48e92 commit ae05017
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,14 @@ jobs:
name: artifact-macos-arm
path: wheelhouse/*.whl

upload_all:
name: Upload if release
pypi-publish:
name: Publish release on PyPi
needs: [build_sdist, build_wheels, build_arm_wheels]
runs-on: ubuntu-latest
if: github.event_name == 'release' && github.event.action == 'published'
environment: release
permissions:
id-token: write

steps:
- uses: actions/setup-python@v5
Expand All @@ -143,5 +146,3 @@ jobs:
- uses: pypa/gh-action-pypi-publish@v1.8.14
with:
skip_existing: true
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit ae05017

Please sign in to comment.