11name : Deploy
22on :
33 release :
4- types : [published]
5-
4+ types : [released]
65jobs :
76 deploy :
87 runs-on : ${{ matrix.os }}
98 strategy :
109 fail-fast : false
1110 matrix :
12- python-version : [3.6, 3. 7, 3.8, 3.9]
11+ python-version : [3.7, 3.8, 3.9]
1312 os : [ubuntu-latest, macos-latest, windows-latest]
1413 steps :
1514 - name : Checkout
@@ -18,15 +17,29 @@ jobs:
1817 uses : actions/setup-python@v2
1918 with :
2019 python-version : ${{ matrix.python-version }}
21- - name : Install latest rust
20+ - name : Install Rust
2221 uses : actions-rs/toolchain@v1
2322 with :
23+ profile : minimal
2424 toolchain : stable
2525 override : true
26- - name : Install dependencies
27- run : |
28- python -m pip install --upgrade pip maturin
29- - name : Build & Publish to PyPi
30- run : maturin publish --username __token__ --no-sdist --interpreter python${{matrix.python_version}} --manylinux=2014 --skip-auditwheel
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 }}
34+ env :
35+ MATURIN_PASSWORD : ${{ secrets.pypi_password }}
36+ - name : Publish Package
37+ if : matrix.os == 'windows-latest'
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
3144 env :
3245 MATURIN_PASSWORD : ${{ secrets.pypi_password }}
0 commit comments