Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 9 additions & 26 deletions .github/workflows/wheels-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,16 @@ jobs:
env:
GH_TOKEN: ${{ github.token }}

- name: use gha-tools from PR branch
run: |
git clone https://github.com/rapidsai/gha-tools.git --branch support-sdists /tmp/gha-tools
echo "/tmp/gha-tools/tools" >> "$GITHUB_PATH"

- name: Download wheels from artifact storage and publish to anaconda repository
run: rapids-wheels-anaconda-github "${INPUTS_PACKAGE_NAME}" "${INPUTS_PACKAGE_TYPE}"
run: |
# get RAPIDS SHA
export RAPIDS_SHA=$(git rev-parse HEAD)
rapids-wheels-anaconda-github "${INPUTS_PACKAGE_NAME}" "${INPUTS_PACKAGE_TYPE}"
env:
GH_TOKEN: ${{ github.token }}
RAPIDS_CONDA_TOKEN: ${{ secrets.CONDA_RAPIDSAI_WHEELS_NIGHTLY_TOKEN }}
Expand All @@ -130,28 +138,3 @@ jobs:
INPUTS_PACKAGE_TYPE: ${{ inputs.package-type }}
# Used to override search key construction as needed
WHEEL_SEARCH_KEY: ${{ inputs.publish-wheel-search-key }}

- name: Check if build is release
id: check_if_release
shell: bash
if: ${{ inputs.publish_to_pypi }}
run: |
if rapids-is-release-build; then
echo "is_release_build=true" | tee -a "${GITHUB_OUTPUT}"
else
echo "is_release_build=false" | tee -a "${GITHUB_OUTPUT}"
fi

- name: Publish the downloaded wheels to PyPI
if: ${{ inputs.publish_to_pypi && steps.check_if_release.outputs.is_release_build == 'true' }}
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
if: ${{ vars.TELEMETRY_ENABLED == 'true' }}
env:
GH_TOKEN: ${{ github.token }}