diff --git a/.forgejo/workflows/publish.yml b/.forgejo/workflows/publish.yml index 00b20e6..17f700c 100644 --- a/.forgejo/workflows/publish.yml +++ b/.forgejo/workflows/publish.yml @@ -26,16 +26,21 @@ jobs: . - name: Install build tools - run: pip install build Cython twine + run: | + apt-get update -qq && apt-get install -y patchelf + pip install build Cython twine auditwheel - name: Build wheel run: python -m build --wheel + - name: Repair wheel to manylinux + run: auditwheel repair dist/*.whl --wheel-dir wheelhouse/ + - name: Check wheel metadata - run: twine check dist/*.whl + run: twine check wheelhouse/*.whl - name: Publish to PyPI env: TWINE_USERNAME: __token__ TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} - run: twine upload --verbose dist/*.whl + run: twine upload --verbose wheelhouse/*.whl