@@ -23,25 +23,23 @@ jobs:
2323 profile : minimal
2424 toolchain : stable
2525 override : true
26- - name : Install maturin
27- run : |
28- python -m pip install --upgrade pip maturin
29- - name : Build & Publish to PyPi
30- if : matrix.os == 'ubuntu-latest'
31- run : |
32- python -m pip install --upgrade twine auditwheel;
33- maturin build --no-sdist --interpreter python${{ matrix.python-version }} --manylinux=2014 --skip-auditwheel;
34- auditwheel repair target/wheels/*.whl;
35- twine upload --username __token__ wheelhouse/*.whl;
36- env :
37- TWINE_PASSWORD : ${{ secrets.pypi_password }}
38- - name : Build & Publish to PyPi
39- if : matrix.os == 'macos-latest'
40- run : maturin publish --username __token__ --no-sdist --interpreter python${{ matrix.python-version }} --manylinux=2014
26+ - name : Publish Package
27+ if : matrix.os != 'windows-latest'
28+ uses : messense/maturin-action@v1
29+ with :
30+ maturin-version : latest
31+ command : publish
32+ manylinux : 2014
33+ args : --username=__token__ --no-sdist --interpreter=python${{ matrix.python-version }}
4134 env :
4235 MATURIN_PASSWORD : ${{ secrets.pypi_password }}
43- - name : Build & Publish to PyPi
36+ - name : Publish Package
4437 if : matrix.os == 'windows-latest'
45- run : maturin publish --username=__token__ --no-sdist --interpreter=python --manylinux=2014
38+ uses : messense/maturin-action@v1
39+ with :
40+ maturin-version : latest
41+ command : publish
42+ manylinux : 2014
43+ args : --username=__token__ --no-sdist --interpreter=python
4644 env :
4745 MATURIN_PASSWORD : ${{ secrets.pypi_password }}
0 commit comments