Skip to content

Commit

Permalink
Add workflow to publish releases to Anaconda channel
Browse files Browse the repository at this point in the history
  • Loading branch information
gmarkall committed Jul 29, 2024
1 parent 54ad37f commit bcd457b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 16 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/conda-python-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ on:
matrix_filter:
type: string
default: "."
upload_to_anaconda:
type: boolean
required: false

defaults:
run:
Expand Down Expand Up @@ -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 }}
26 changes: 10 additions & 16 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit bcd457b

Please sign in to comment.