Skip to content

Commit 24b0344

Browse files
committed
Update main.yml
1 parent 888618a commit 24b0344

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,19 @@ jobs:
2424
python setup.py develop
2525
python --version
2626
pytest
27-
27+
2828
- name: Build wheels for Linux
2929
if: matrix.os == 'ubuntu-latest'
3030
run: |
31-
pip install -U wheel setuptools auditwheel patchelf
32-
pip wheel . --verbose -w dist
33-
auditwheel repair dist/document_scanner_sdk*.whl --plat manylinux_2_24_$(uname -m)
34-
31+
docker run --rm -v $(pwd):/io quay.io/pypa/manylinux_2_24_x86_64 \
32+
/bin/bash -c "cd /io && python3 setup.py bdist_wheel -d dist && auditwheel repair dist/*.whl -w /io/wheelhouse"
33+
3534
- name: Build wheels for Windows
3635
if: matrix.os == 'windows-latest'
3736
run: |
3837
pip install -U wheel setuptools
3938
python setup.py bdist_wheel -d wheelhouse
39+
4040
- uses: actions/upload-artifact@v2
4141
with:
4242
path: wheelhouse/*.whl
@@ -53,14 +53,11 @@ jobs:
5353
- uses: actions/upload-artifact@v2
5454
with:
5555
path: dist/*.tar.gz
56-
56+
5757
upload_pypi:
5858
needs: [build_wheels, build_sdist]
5959
runs-on: ubuntu-latest
60-
# upload to PyPI on every tag starting with 'v'
6160
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
62-
# alternatively, to publish when a GitHub Release is created, use the following rule:
63-
# if: github.event_name == 'release' && github.event.action == 'published'
6461
steps:
6562
- uses: actions/download-artifact@v2
6663
with:

0 commit comments

Comments
 (0)