Skip to content

Commit

Permalink
Update upload-artifact usage
Browse files Browse the repository at this point in the history
  • Loading branch information
benbrandt committed Dec 27, 2023
1 parent 2c1c310 commit d9f460c
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ jobs:
manylinux: auto
working-directory: bindings/python
- name: Upload wheels
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: wheels
name: wheels-linux-${{ matrix.target }}
path: bindings/python/dist
if-no-files-found: error
- name: pytest
Expand Down Expand Up @@ -108,9 +108,9 @@ jobs:
sccache: "true"
working-directory: bindings/python
- name: Upload wheels
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: wheels
name: wheels-windows-${{ matrix.target }}
path: bindings/python/dist
if-no-files-found: error
- name: pytest
Expand Down Expand Up @@ -144,9 +144,9 @@ jobs:
sccache: "true"
working-directory: bindings/python
- name: Upload wheels
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: wheels
name: wheels-macos-${{ matrix.target }}
path: bindings/python/dist
if-no-files-found: error
- name: pytest
Expand All @@ -173,9 +173,9 @@ jobs:
args: --out dist
working-directory: bindings/python
- name: Upload sdist
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: wheels
name: wheels-sdist
path: bindings/python/dist
if-no-files-found: error

Expand All @@ -187,7 +187,9 @@ jobs:
steps:
- uses: actions/download-artifact@v4
with:
name: wheels
path: wheels
pattern: wheels-*
merge-multiple: true
- name: Publish to PyPI
uses: PyO3/maturin-action@v1
env:
Expand Down

0 comments on commit d9f460c

Please sign in to comment.