Skip to content

Commit ab6a136

Browse files
authored
ci: update download (#466)
* ci: update download * Apply suggestions from code review
1 parent 6d033ba commit ab6a136

File tree

1 file changed

+14
-15
lines changed

1 file changed

+14
-15
lines changed

.github/workflows/build.yml

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ on:
1313
push:
1414
branches:
1515
- main
16-
- main
16+
- py2-legacy
1717
tags:
1818
- "*.*.*"
1919

@@ -112,7 +112,7 @@ jobs:
112112
if: matrix.use_qemu && fromJSON(env.USE_QEMU)
113113

114114
- name: Build wheels
115-
uses: pypa/[email protected].0
115+
uses: pypa/[email protected]
116116
if: (!matrix.use_qemu) || fromJSON(env.USE_QEMU)
117117
env:
118118
CIBW_ARCHS: "${{ matrix.arch }}"
@@ -121,7 +121,7 @@ jobs:
121121
- uses: actions/upload-artifact@v4
122122
if: (!matrix.use_qemu) || fromJSON(env.USE_QEMU)
123123
with:
124-
name: Wheel-${{ runner.os }}-${{ matrix.build }}${{ matrix.arch }}
124+
name: cibw-${{ runner.os }}-${{ matrix.build }}${{ matrix.arch }}
125125
path: ./wheelhouse/*.whl
126126

127127
build_manylinux2010_wheels:
@@ -141,7 +141,7 @@ jobs:
141141
fetch-depth: 0 # required for versioneer to find tags
142142

143143
- name: Build wheels
144-
uses: pypa/[email protected].0
144+
uses: pypa/[email protected]
145145
env:
146146
CIBW_ARCHS: "${{ matrix.arch }}"
147147
CIBW_BUILD: "cp39-manylinux_*"
@@ -150,7 +150,7 @@ jobs:
150150

151151
- uses: actions/upload-artifact@v4
152152
with:
153-
name: Wheel-manylinux2010-${{ matrix.arch }}
153+
name: cibw-manylinux2010-${{ matrix.arch }}
154154
path: ./wheelhouse/*.whl
155155

156156
build_sdist:
@@ -167,7 +167,7 @@ jobs:
167167

168168
- uses: actions/upload-artifact@v4
169169
with:
170-
name: SDist
170+
name: cibw-sdist
171171
path: dist/*.tar.gz
172172

173173
test_sdist:
@@ -194,7 +194,7 @@ jobs:
194194
195195
- uses: actions/download-artifact@v4
196196
with:
197-
name: SDist
197+
name: cibw-sdist
198198
path: dist
199199

200200
- name: Install SDist
@@ -215,9 +215,11 @@ jobs:
215215
steps:
216216
- uses: actions/download-artifact@v4
217217
with:
218-
path: all
218+
pattern: cibw-*
219+
merge-multiple: true
220+
path: dist
219221

220-
- run: pipx run twine check --strict all/*/*
222+
- run: pipx run twine check --strict dist/*
221223

222224
upload_pypi:
223225
name: Upload to PyPI
@@ -232,11 +234,8 @@ jobs:
232234
steps:
233235
- uses: actions/download-artifact@v4
234236
with:
235-
path: all
236-
237-
- name: Merge files
238-
run: |
239-
mkdir dist
240-
mv all/*/* dist/.
237+
pattern: cibw-*
238+
merge-multiple: true
239+
path: dist
241240

242241
- uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)