Skip to content

Commit fef9db5

Browse files
committed
Fixed publish binary wheel
1 parent 5edec6f commit fef9db5

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,14 @@ jobs:
6161
pdm sync -v -dG build --no-isolation
6262
pdm run test --cov=./baize -o log_cli=true -o log_cli_level=DEBUG
6363
64+
- name: Try repair linux binary wheel
65+
if: matrix.os == 'ubuntu-latest'
66+
run: |
67+
pip install auditwheel
68+
pdm build --no-isolation
69+
auditwheel show dist/*-linux*.whl
70+
auditwheel repair dist/*-linux*.whl -w ./dist --plat manylinux_2_17_x86_64
71+
6472
publish:
6573
needs: tests
6674
if: startsWith(github.ref, 'refs/tags/')
@@ -93,6 +101,18 @@ jobs:
93101
run: |
94102
pdm build --no-isolation
95103
104+
- name: Repair linux binary wheel
105+
if: matrix.os == 'ubuntu-latest'
106+
run: |
107+
pip install auditwheel
108+
auditwheel show dist/*-linux*.whl
109+
auditwheel repair dist/*-linux*.whl -w ./dist --plat manylinux_2_17_x86_64
110+
rm -f $(find dist -name *-linux*.whl)
111+
112+
- name: Publish
113+
run: |
114+
twine upload --username __token__ --password ${{ secrets.PYPI_API_TOKEN }} --verbose --skip-existing dist/*
115+
96116
- name: Build pure python wheel
97117
run: |
98118
python script/disable_build.py

0 commit comments

Comments
 (0)