From 987b42dc1a31bed0dc89b5e0ec13004ba8577202 Mon Sep 17 00:00:00 2001 From: Kyle Edwards Date: Fri, 28 Feb 2025 13:10:08 -0500 Subject: [PATCH 1/2] Publish wheels from `ubuntu-latest` The `gh-action-pypi-publish` action does not officially support self-hosted runners, so publish from a GitHub runner instead. Resolves https://github.com/NVIDIA/numba-cuda/issues/75 --- .github/workflows/wheels-publish.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/wheels-publish.yaml b/.github/workflows/wheels-publish.yaml index 3c6b661f..d7ddea51 100644 --- a/.github/workflows/wheels-publish.yaml +++ b/.github/workflows/wheels-publish.yaml @@ -47,7 +47,7 @@ permissions: jobs: wheel-publish: name: wheels publish - runs-on: linux-amd64-cpu4 + runs-on: ubuntu-latest container: # CUDA toolkit version of the container is irrelevant in the publish step. # This just uploads already-built wheels to remote storage. From 08f954f350493f0ad631532027b712cac42bfc03 Mon Sep 17 00:00:00 2001 From: Kyle Edwards Date: Mon, 10 Mar 2025 10:27:34 -0400 Subject: [PATCH 2/2] Use twine to upload wheels --- .github/workflows/wheels-publish.yaml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/wheels-publish.yaml b/.github/workflows/wheels-publish.yaml index d7ddea51..f3d2565b 100644 --- a/.github/workflows/wheels-publish.yaml +++ b/.github/workflows/wheels-publish.yaml @@ -100,9 +100,11 @@ jobs: - name: Publish the downloaded wheels to PyPI if: ${{ inputs.publish_to_pypi && steps.check_if_release.outputs.is_release_build == 'true' }} - uses: pypa/gh-action-pypi-publish@release/v1 - with: - password: ${{ secrets.RAPIDSAI_PYPI_TOKEN }} + run: | + python3 -m pip install twine + python3 -m twine upload -u __token__ dist/* + env: + TWINE_PASSWORD: ${{ secrets.RAPIDSAI_PYPI_TOKEN }} - name: Telemetry upload attributes uses: rapidsai/shared-actions/telemetry-dispatch-stash-job-artifacts@main continue-on-error: true