Skip to content

Publish packages

Publish packages #53

Workflow file for this run

# SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: BSD-2-Clause
name: Publish packages
on:
push:
tags:
- 'v*'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-release
cancel-in-progress: true
jobs:
compute-matrix:
runs-on: ubuntu-latest
outputs:
BUILD_MATRIX: ${{ steps.compute-matrix.outputs.BUILD_MATRIX }}
steps:
- uses: actions/checkout@v4
- name: Compute Build Matrix
id: compute-matrix
run: |
BUILD_MATRIX="$(yq '.build-matrix' ci/matrix.yml)"
{
echo 'BUILD_MATRIX<<EOF'
echo "${BUILD_MATRIX}"
echo 'EOF'
} >> "${GITHUB_OUTPUT}"
build-conda:
needs: compute-matrix
uses: ./.github/workflows/conda-python-build.yaml
secrets: inherit
with:
build_type: release
script: "ci/build_conda.sh"
matrix: ${{ needs.compute-matrix.outputs.BUILD_MATRIX }}
upload_to_anaconda: true
build-wheels:
needs: compute-matrix
uses: ./.github/workflows/wheels-build.yaml
secrets: inherit
with:
build_type: release
script: "ci/build_wheel.sh"
matrix: ${{ needs.compute-matrix.outputs.BUILD_MATRIX }}
publish-wheels:
needs: build-wheels
runs-on: ubuntu-latest
steps:
- name: Download sdist
if: "!cancelled()"
uses: actions/download-artifact@v4
with:
name: sdist
path: dist
- name: Download wheel
if: "!cancelled()"
uses: actions/download-artifact@v4
with:
name: wheel
path: dist
- name: Publish wheel
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.RAPIDSAI_PYPI_TOKEN }}
build-docs:
needs:
- build-conda
uses: ./.github/workflows/docs-build.yaml
with:
build_type: release
deploy-docs:
needs: build-docs
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4