Skip to content

Commit 81df667

Browse files
committed
Fix upload artefacts steps in GH Actions workflows
Version 4 of 'actions/download-artifact' introduced a breaking change which broke the 'build-wheels' job. See actions/upload-artifact#478.
1 parent 8ab53ac commit 81df667

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/test_and_publish.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ jobs:
8181
- name: Upload artefacts to GitHub
8282
uses: actions/upload-artifact@v4
8383
with:
84-
name: dist-packages
84+
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
8585
path: wheelhouse/*.whl
8686

8787
build-sdist:
@@ -112,7 +112,7 @@ jobs:
112112
- name: Upload artefacts to GitHub
113113
uses: actions/upload-artifact@v4
114114
with:
115-
name: dist-packages
115+
name: cibw-sdist
116116
path: dist/*.tar.gz
117117

118118
publish-to-test-pypi:
@@ -129,8 +129,9 @@ jobs:
129129
- name: Download artefacts
130130
uses: actions/download-artifact@v4
131131
with:
132-
name: dist-packages
132+
name: cibw-*
133133
path: dist
134+
merge-multiple: true
134135

135136
- name: Publish to TestPyPI
136137
uses: pypa/gh-action-pypi-publish@v1.8.14
@@ -153,8 +154,9 @@ jobs:
153154
- name: Download artefacts
154155
uses: actions/download-artifact@v4
155156
with:
156-
name: dist-packages
157+
name: cibw-*
157158
path: dist
159+
merge-multiple: true
158160

159161
- name: Publish to test PyPI
160162
uses: pypa/gh-action-pypi-publish@v1.8.14

0 commit comments

Comments
 (0)