Skip to content

Commit

Permalink
CICD: Switch to trusted publisher based auth for releases to PyPi
Browse files Browse the repository at this point in the history
  • Loading branch information
RUrlus committed Apr 11, 2024
1 parent 6e9362c commit 5fd84e4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,14 @@ jobs:
name: artifact-macos-arm
path: wheelhouse/*.whl

upload_all:
name: Upload if release
pypi-publish:
name: Publish releae 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 @@ -139,6 +142,3 @@ jobs:
path: dist

- uses: pypa/gh-action-pypi-publish@release/v1
with:
user: ${{ secrets.PYPI_USER }}
password: ${{ secrets.PYPI_PASS }}

0 comments on commit 5fd84e4

Please sign in to comment.