Skip to content

Commit 7e46e92

Browse files
Upload wheels to PyPI from GitHub-hosted runner (NVIDIA#142)
The gh-action-pypi-publish action does not support self-hosted runners. Use a GitHub-hosted runner instead. Resolves NVIDIA#75
1 parent 964248d commit 7e46e92

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

.github/workflows/wheels-build.yaml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,24 @@ jobs:
174174
name: wheel
175175
path: ${{ env.wheel_path }}
176176

177+
publish:
178+
needs: [build]
179+
runs-on: ubuntu-latest
180+
if: inputs.upload_to_pypi
181+
steps:
182+
- name: Download sdist
183+
if: "!cancelled()"
184+
uses: actions/download-artifact@v4
185+
with:
186+
name: sdist
187+
path: dist
188+
- name: Download wheel
189+
if: "!cancelled()"
190+
uses: actions/download-artifact@v4
191+
with:
192+
name: wheel
193+
path: dist
177194
- name: Publish wheel
178-
if: inputs.upload_to_pypi
179195
uses: pypa/gh-action-pypi-publish@release/v1
180196
with:
181197
password: ${{ secrets.RAPIDSAI_PYPI_TOKEN }}

0 commit comments

Comments
 (0)