Skip to content

Commit 214cfc1

Browse files
authored
Give a name to each new artefact
1 parent 2c87e4e commit 214cfc1

1 file changed

Lines changed: 16 additions & 5 deletions

File tree

.github/workflows/upload-to-pypi.yml

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ on:
66
overrideVersion:
77
description: Manually force a version
88
uploadToPyPI:
9-
description: Upload to PyPI
10-
required: false
11-
default: false
12-
type: boolean
9+
description: Upload to PyPI
10+
required: false
11+
default: false
12+
type: boolean
1313

1414
env:
1515
CIBW_BUILD_VERBOSITY: 3
@@ -34,6 +34,7 @@ jobs:
3434
run: python -m build --sdist
3535
- uses: actions/upload-artifact@v4
3636
with:
37+
name: sdist
3738
path: dist/*.tar.gz
3839
- name: Check metadata
3940
run: twine check dist/*
@@ -65,6 +66,7 @@ jobs:
6566

6667
- uses: actions/upload-artifact@v4
6768
with:
69+
name: wheels
6870
path: wheelhouse/*.whl
6971

7072
build_aarch64_wheels:
@@ -95,6 +97,7 @@ jobs:
9597
CIBW_ENVIRONMENT: "SETUPTOOLS_SCM_PRETEND_VERSION=${{ github.event.inputs.overrideVersion }}"
9698
- uses: actions/upload-artifact@v4
9799
with:
100+
name: aarch64_wheels
98101
path: wheelhouse/*.whl
99102

100103
upload_all:
@@ -103,7 +106,15 @@ jobs:
103106
steps:
104107
- uses: actions/download-artifact@v5
105108
with:
106-
name: artifact
109+
name: sdist
110+
path: dist
111+
- uses: actions/download-artifact@v5
112+
with:
113+
name: wheels
114+
path: dist
115+
- uses: actions/download-artifact@v5
116+
with:
117+
name: aarch64_wheels
107118
path: dist
108119
- name: Publish to PyPI
109120
if: ${{ github.event.inputs.uploadToPyPI == 'true' }}

0 commit comments

Comments
 (0)