Skip to content

Commit 80a673e

Browse files
committed
.github/workflows/package_and_publish.yml: fix artifact name conflict
1 parent d76797b commit 80a673e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/package_and_publish.yml

+5-4
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ jobs:
7676
cp dist/*.whl wheelhouse
7777
- uses: actions/upload-artifact@v4
7878
with:
79-
name: wheelhouse
79+
name: wheelhouse-${{ matrix.os }}
8080
path: wheelhouse
8181

8282
publish:
@@ -99,7 +99,7 @@ jobs:
9999
100100
- uses: actions/upload-artifact@v4
101101
with:
102-
name: wheelhouse
102+
name: wheelhouse-sdist
103103
path: wheelhouse
104104

105105
- name: Publish SDIST to PyPI # there are some problems if sdist is not pushed first
@@ -111,10 +111,11 @@ jobs:
111111
packages_dir: wheelhouse/
112112

113113
- name: Download all the wheels
114-
uses: actions/download-artifact@v2
114+
uses: actions/download-artifact@v4
115115
with:
116-
name: wheelhouse
117116
path: ./wheelhouse/
117+
pattern: wheelhouse-*
118+
merge-multiple: true
118119

119120
- name: Publish a Python distribution to Test PyPI
120121
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)