Skip to content

Commit 3fcb17d

Browse files
Fixed github action
1 parent 92abe4a commit 3fcb17d

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

Diff for: .github/workflows/build-wheels.yml

+8-6
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515

1616
steps:
1717
- name: Check out code
18-
uses: actions/checkout@v2
18+
uses: actions/checkout@v4
1919

2020
# Install Rust and Cargo
2121
- name: Install Rust
@@ -26,7 +26,7 @@ jobs:
2626
override: true
2727

2828
- name: Set up Python ${{ matrix.python-version }}
29-
uses: actions/setup-python@v2
29+
uses: actions/setup-python@v5
3030
with:
3131
python-version: ${{ matrix.python-version }}
3232

@@ -37,7 +37,7 @@ jobs:
3737
run: maturin build --release
3838

3939
- name: Upload wheel
40-
uses: actions/upload-artifact@v2
40+
uses: actions/upload-artifact@v4
4141
with:
4242
name: wheels-${{ matrix.os }}-${{ matrix.python-version }}
4343
path: target/wheels/*.whl
@@ -48,17 +48,19 @@ jobs:
4848

4949
steps:
5050
- name: Download all wheels
51-
uses: actions/download-artifact@v2
51+
uses: actions/download-artifact@v4
5252
with:
5353
path: wheels
54+
pattern: wheels-*
55+
merge-multiple: true
5456

5557
- name: Set up Python
56-
uses: actions/setup-python@v2
58+
uses: actions/setup-python@v5
5759
with:
5860
python-version: '3.x'
5961

6062
- name: Install twine
6163
run: pip install twine
6264

6365
- name: Publish to PyPI
64-
run: twine upload wheels/*/*.whl --username "__token__" --password ${{ secrets.PYPI_API_TOKEN }}
66+
run: twine upload wheels/*/*.whl --username "__token__" --password ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)