Skip to content

Commit e429425

Browse files
committed
Upgrading to upload/download-artifact v4
1 parent 2212c92 commit e429425

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

Diff for: .github/workflows/cibuildwheels.yml

+6-4
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,9 @@ jobs:
6767
uses: pypa/[email protected]
6868

6969
- name: Upload wheels
70-
uses: actions/upload-artifact@v3
70+
uses: actions/upload-artifact@v4
7171
with:
72+
name: wheels-${{ matrix.runs-on }}
7273
path: ./wheelhouse/*.whl
7374

7475

@@ -99,6 +100,7 @@ jobs:
99100
- name: Upload sdist package
100101
uses: actions/upload-artifact@v4
101102
with:
103+
name: wheels-source
102104
path: dist/*.tar.gz
103105

104106
- name: Build building extension from sdist package
@@ -120,10 +122,10 @@ jobs:
120122
# Only upload wheels when tagging (typically a release)
121123
if: startsWith(github.event.ref, 'refs/tags')
122124
steps:
123-
- uses: actions/download-artifact@v3
125+
- uses: actions/download-artifact@v4
124126
with:
125-
name: artifact
126-
path: dist
127+
pattern: wheels-* # Download the wheels artifact
128+
merge-multiple: true # Merge all the wheels artifacts into one directory
127129

128130
- uses: pypa/gh-action-pypi-publish@release/v1
129131
with:

0 commit comments

Comments
 (0)