Skip to content

Commit 649519b

Browse files
committed
Fix artifact name collision. Future proof old python version builds
1 parent f98a9bf commit 649519b

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

.github/workflows/build.yml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,26 @@ jobs:
1616
strategy:
1717
matrix:
1818
python-version:
19-
- 3.6
20-
- 3.7
21-
- 3.8
22-
- 3.9
19+
- "3.6"
20+
- "3.7"
21+
- "3.8"
22+
- "3.9"
2323
- "3.10"
2424
- "3.11"
2525
- "3.12"
2626
include:
2727
- os: ubuntu-latest
2828

2929
# older versions need older OS
30-
- python-version: 3.6
30+
- python-version: "3.6"
3131
os: ubuntu-20.04
3232

33+
- python-version: "3.7"
34+
os: ubuntu-22.04
35+
36+
- python-version: "3.8"
37+
os: ubuntu-22.04
38+
3339
name: python${{ matrix.python-version }}
3440
runs-on: ${{ matrix.os }}
3541

@@ -183,6 +189,7 @@ jobs:
183189

184190
- uses: actions/upload-artifact@v4
185191
with:
192+
name: whl-${{ matrix.os }}${{ matrix.name_suffix }}
186193
path: ./wheelhouse/*.whl
187194

188195
#-------------------------------------------------------------------------------
@@ -205,6 +212,7 @@ jobs:
205212
run: python setup.py sdist
206213

207214
- uses: actions/upload-artifact@v4
215+
name: sdist
208216
with:
209217
path: dist/*.tar.gz
210218

@@ -221,7 +229,6 @@ jobs:
221229
steps:
222230
- uses: actions/download-artifact@v4
223231
with:
224-
name: artifact
225232
path: dist
226233

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

0 commit comments

Comments
 (0)