Skip to content

Commit 5937943

Browse files
committed
Upload/download artifact changes
1 parent f3871b8 commit 5937943

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/pypi.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ jobs:
8181
- name: Save wheel
8282
uses: actions/upload-artifact@v4
8383
with:
84-
name: my-artifacts-${{ strategy-job-index }}
84+
name: my-artifacts-${{ inputs.context }}-${{ inputs.job-index }}
8585
path: dist/*.whl
8686
if-no-files-found: error
8787

@@ -123,7 +123,7 @@ jobs:
123123
- name: Save wheel
124124
uses: actions/upload-artifact@v4
125125
with:
126-
name: my-artifacts-${{ strategy-job-index }}
126+
name: my-artifacts-${{ inputs.context }}-${{ inputs.job-index }}
127127
path: dist/*.whl
128128
if-no-files-found: error
129129

@@ -140,8 +140,9 @@ jobs:
140140
steps:
141141
- uses: actions/download-artifact@v4
142142
with:
143-
name: artifact
143+
pattern: my-artifacts-${{ inputs.context }}-*
144144
path: dist
145+
merge-multiple: true
145146

146147
- name: Publish package to TestPyPI
147148
uses: pypa/gh-action-pypi-publish@release/v1
@@ -161,7 +162,7 @@ jobs:
161162
steps:
162163
- uses: actions/download-artifact@v4
163164
with:
164-
pattern: my-artifacts-*
165+
pattern: my-artifacts-${{ inputs.context }}-*
165166
path: dist
166167
merge-multiple: true
167168

0 commit comments

Comments
 (0)