diff --git a/.github/workflows/conda-python-build.yaml b/.github/workflows/conda-python-build.yaml index e263716..c861eaa 100644 --- a/.github/workflows/conda-python-build.yaml +++ b/.github/workflows/conda-python-build.yaml @@ -21,6 +21,9 @@ on: matrix_filter: type: string default: "." + upload_to_anaconda: + type: boolean + required: false defaults: run: @@ -115,3 +118,8 @@ jobs: with: name: conda-package path: ${{ env.package_path }} + - name: Publish conda package + if: inputs.upload_to_anaconda + run: "ci/upload_conda.sh" + env: + CONDA_TOKEN: ${{ secrets.NVIDIA_CONDA_TOKEN }} diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index ce915ca..dc89625 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -1,27 +1,21 @@ # SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved. # SPDX-License-Identifier: Apache-2.0 -name: Publish CONDA PKG +name: Publish packages on: - workflow_dispatch: + push: + tags: + - 'v*' + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }}-release + cancel-in-progress: true jobs: - build-conda-x86_64: - uses: ./.github/workflows/conda-python-build.yaml - secrets: inherit - with: - build_type: branch - script: "ci/build_conda.sh" - CPU: "amd64" - GPU: "v100" - upload_to_conda: true - build-conda-aarch64: - uses: ./.github/workflows/conda-python-build.yaml + build-conda: secrets: inherit with: - build_type: branch + build_type: release script: "ci/build_conda.sh" - CPU: "arm64" - GPU: "a100" upload_to_conda: true