Skip to content

Commit 21c9821

Browse files
committed
Update python-publish.yml
1 parent 0d6f9bf commit 21c9821

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.github/workflows/python-publish.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,21 @@ jobs:
1818
runs-on: ubuntu-latest
1919

2020
steps:
21-
- uses: actions/checkout@v2
21+
- uses: actions/checkout@v3
2222
- name: Set up Python
23-
uses: actions/setup-python@v2
23+
uses: actions/setup-python@v4
2424
with:
2525
python-version: '3.x'
26+
- name: Install Rust toolchain
27+
uses: dtolnay/rust-toolchain@stable
2628
- name: Install dependencies
2729
run: |
2830
python -m pip install --upgrade pip
29-
pip install build
30-
- name: Build package
31-
run: python -m build
31+
pip install build maturin
32+
- uses: PyO3/maturin-action@v1
33+
with:
34+
command: build
35+
args: --release --sdist -o dist
3236
- name: Publish package
3337
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
3438
with:

0 commit comments

Comments
 (0)