Skip to content

Commit e8806a2

Browse files
committed
add publish wheel yml
1 parent 96c3c71 commit e8806a2

File tree

1 file changed

+59
-0
lines changed

1 file changed

+59
-0
lines changed

.github/workflows/publish-wheel.yml

+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: Publish
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
workflow_dispatch:
8+
9+
jobs:
10+
publish:
11+
name: Publish for ${{ matrix.os }}
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
target:
16+
- x86_64-unknown-linux-musl
17+
- x86_64-apple-darwin
18+
- x86_64-pc-windows-msvc
19+
- i686-pc-windows-msvc
20+
- aarch64-pc-windows-msvc
21+
include:
22+
- target: x86_64-unknown-linux-musl
23+
os: ubuntu-latest
24+
- target: x86_64-apple-darwin
25+
os: macos-latest
26+
- target: x86_64-pc-windows-msvc
27+
os: windows-latest
28+
- target: i686-pc-windows-msvc
29+
os: windows-latest
30+
- target: aarch64-pc-windows-msvc
31+
os: windows-latest
32+
33+
runs-on: ${{ matrix.os }}
34+
environment: PyPI
35+
steps:
36+
- uses: actions/checkout@v2
37+
- uses: actions/setup-python@v2
38+
with:
39+
python-version: 3.7
40+
- uses: actions/setup-python@v2
41+
with:
42+
python-version: 3.8
43+
- uses: actions/setup-python@v2
44+
with:
45+
python-version: 3.9
46+
- uses: actions-rs/toolchain@v1
47+
with:
48+
profile: minimal
49+
toolchain: stable
50+
override: true
51+
52+
- name: Publish
53+
uses: messense/maturin-action@v1
54+
env:
55+
MATURIN_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
56+
with:
57+
maturin-version: latest
58+
command: publish
59+
args: --username=__token__ --skip-existing

0 commit comments

Comments
 (0)