Skip to content

Commit 417a668

Browse files
committed
finish publish action.
1 parent 793b741 commit 417a668

File tree

2 files changed

+28
-3
lines changed

2 files changed

+28
-3
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: CI
33
# Controls when the workflow will run
44
on:
55
# Triggers the workflow on pull request and release events
6-
# pull_request:
6+
pull_request:
77
release:
88

99

.github/workflows/publish.yml

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ name: "publish"
33
# Controls when the workflow will run
44
on:
55
release:
6-
pull_request:
76

87
# Allows you to run this workflow manually from the Actions tab
98
workflow_dispatch:
@@ -14,7 +13,33 @@ jobs:
1413
runs-on: macos-latest
1514
strategy:
1615
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']
1843
steps:
1944
- uses: actions/checkout@v2
2045
- uses: actions/setup-python@v2

0 commit comments

Comments
 (0)