Skip to content

Commit 7fdb61f

Browse files
committed
fix: artifact name for non-local wheels
1 parent 8c1c726 commit 7fdb61f

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/wheels_build.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,8 +233,18 @@ jobs:
233233
PLAT_ARG: ${{ contains(inputs.os, 'ubuntu') && '--plat-name manylinux2014_x86_64' || '' }}
234234

235235
- run: du -h dist/*
236-
- uses: actions/upload-artifact@v4
236+
237+
- name: Upload artifact (local build)
238+
if: ${{ inputs.append_local_version != '0' }}
239+
uses: actions/upload-artifact@v4
237240
with:
238241
name: ${{ inputs.os }}-py${{ inputs.python }}-torch${{ inputs.torch_version }}+cu${{ inputs.cuda_short_version }}
239242
path: dist/*.whl
243+
244+
- name: Upload artifact (pypi build)
245+
if: ${{ inputs.append_local_version == '0' }}
246+
uses: actions/upload-artifact@v4
247+
with:
248+
name: ${{ inputs.os }}-py${{ inputs.python }}
249+
path: dist/*.whl
240250
# Note: it might be helpful to have additional steps that test if the built wheels actually work

0 commit comments

Comments
 (0)