Download artifacts and publish to PyPI (#122)

* Download artifacts and publish to PyPI

* Comment out enviroment

* Add comment to permissions

---------

Co-authored-by: Hynek Schlawack <hs@ox.cx>
This commit is contained in:
Hugo van Kemenade 2026-05-06 11:36:26 +03:00 committed by GitHub
parent 5b9784caf1
commit f0d9da739d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -61,4 +61,27 @@ jobs:
with:
name: wheels-${{ matrix.os }}-${{ strategy.job-index }}
path: ./wheelhouse/*.whl
...
pypi-publish:
if: |
github.event.repository.fork == false
&& github.event_name == 'push'
&& startsWith(github.ref, 'refs/tags')
needs: wheels
runs-on: ubuntu-latest
name: Upload release to PyPI
# environment:
# name: release-pypi
# url: https://pypi.org/p/argon2-cffi-bindings
permissions:
id-token: write # necessary for trusted publishing
steps:
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
pattern: wheels-*
path: dist
merge-multiple: true
- name: List files
run: ls -la dist/
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # v1.14.0