Skip to content

Commit

Permalink
ci: Add the release steps to publish to PyPI
Browse files Browse the repository at this point in the history
  • Loading branch information
QuLogic committed Dec 23, 2023
1 parent 5cc426b commit 8f2cc49
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/cibuildwheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -191,3 +191,22 @@ jobs:
name: cibw-wheels-${{ runner.os }}-${{ matrix.cibw_archs }}
path: ./wheelhouse/*.whl
if-no-files-found: error

publish:
name: Upload release to PyPI
needs: [build_sdist, build_wheels]
runs-on: ubuntu-latest
environment: release
permissions:
id-token: write
steps:
- name: Download packages
uses: actions/download-artifact@v4
with:
pattern: cibw-*
path: dist
merge-multiple: true

- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@b7f401de30cb6434a1e19f805ff006643653240e # v1.8.10
if: github.event_name == 'release' && github.event.action == 'published'

0 comments on commit 8f2cc49

Please sign in to comment.