File tree Expand file tree Collapse file tree 1 file changed +6
-9
lines changed
Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Original file line number Diff line number Diff 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 :
You can’t perform that action at this time.
0 commit comments