ci: publish Python wheels from the tag release workflow

This commit is contained in:
Adrien Beraud committed 2026-10-29 21:48:33 -04:00
1 parent 67c76f17de
commit 64b536fb53
2 files changed
+27 -21

No files matched your search

+2 -21
View File
@@ -4,10 +4,10 @@ permissions:
contents: read
on:
release:
types: [published]
push:
branches: ['**']
pull_request:
workflow_call:
workflow_dispatch:
jobs:
@@ -82,22 +82,3 @@ jobs:
with:
name: opendht-wheels-win_amd64
path: ./build/wheelhouse/*.whl
publish:
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
needs: [build_wheels, build_wheels_windows]
environment:
name: pypi
url: https://pypi.org/p/opendht
permissions:
id-token: write
steps:
- uses: actions/download-artifact@v8
with:
pattern: opendht-wheels-*
path: dist
merge-multiple: true
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1