Skip to content

Commit 36fd9b8

Browse files
committed
ci: use distinct artifact names for arch target wheels
To fix issues using the upload and download artifact actions v4.
1 parent 57e1f74 commit 36fd9b8

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

.github/workflows/release.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ jobs:
128128
- name: Upload build artifacts
129129
uses: actions/upload-artifact@v4
130130
with:
131-
name: wheels
131+
name: ${{ matrix.arch }}-wheels
132132
path: wheels/
133133
if-no-files-found: error
134134
retention-days: 3
@@ -140,23 +140,26 @@ jobs:
140140
steps:
141141
- name: Download sdist and wheel artifacts
142142
uses: actions/download-artifact@v4
143+
with:
144+
path: ${{ github.ref_name }}
145+
merge-multiple: true
143146

144147
- name: Upload sdist to PyPI
145148
uses: pypa/gh-action-pypi-publish@release/v1
146149
with:
147150
password: ${{ secrets.PYPI_API_TOKEN }}
148-
packages_dir: sdist/
151+
packages_dir: ${{ github.ref_name }}/sdist/
149152
print_hash: true
150153

151154
- name: Upload wheels to PyPI
152155
uses: pypa/gh-action-pypi-publish@release/v1
153156
with:
154157
password: ${{ secrets.PYPI_API_TOKEN }}
155-
packages_dir: wheels/
158+
packages_dir: ${{ github.ref_name }}/wheels/
156159
print_hash: true
157160

158161
- name: Create GitHub release
159162
uses: softprops/action-gh-release@v1
160163
with:
161-
files: sdist/*.tar.gz
164+
files: ${{ github.ref_name }}/sdist/*.tar.gz
162165
fail_on_unmatched_files: true

0 commit comments

Comments
 (0)