File tree Expand file tree Collapse file tree 2 files changed +28
-3
lines changed Expand file tree Collapse file tree 2 files changed +28
-3
lines changed Original file line number Diff line number Diff line change 3
3
# Controls when the workflow will run
4
4
on :
5
5
# Triggers the workflow on pull request and release events
6
- # pull_request:
6
+ pull_request :
7
7
release :
8
8
9
9
Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ name: "publish"
3
3
# Controls when the workflow will run
4
4
on :
5
5
release :
6
- pull_request :
7
6
8
7
# Allows you to run this workflow manually from the Actions tab
9
8
workflow_dispatch :
14
13
runs-on : macos-latest
15
14
strategy :
16
15
matrix :
17
- python-version : ['3.7']
16
+ python-version : ['3.7', '3.8', '3.9', '3.10']
17
+ steps :
18
+ - uses : actions/checkout@v2
19
+ - uses : actions/setup-python@v2
20
+ with :
21
+ python-version : ${{ matrix.python-version }}
22
+ - name : Install Rust toolchain
23
+ uses : actions-rs/toolchain@v1
24
+ with :
25
+ toolchain : stable
26
+ profile : minimal
27
+ default : true
28
+ - name : Install Python packages
29
+ run : |
30
+ pip install maturin
31
+ - name : Publish ulist
32
+ env :
33
+ PYPI_PW : ${{ secrets.PYPI_PW }}
34
+ run : |
35
+ maturin publish -m ulist/Cargo.toml -u tushushu -p $PYPI_PW
36
+
37
+
38
+ linux :
39
+ runs-on : ubuntu-latest
40
+ strategy :
41
+ matrix :
42
+ python-version : ['3.7', '3.8', '3.9', '3.10']
18
43
steps :
19
44
- uses : actions/checkout@v2
20
45
- uses : actions/setup-python@v2
You can’t perform that action at this time.
0 commit comments