From a12fbf33438ed04da6f1d93a8004d9fd1c04cf22 Mon Sep 17 00:00:00 2001 From: jakirkham Date: Thu, 18 Apr 2024 23:18:25 -0700 Subject: [PATCH] Add GHA upload workflow to publish packages As RAPIDS has its own upload process that differs from conda-forge in some particular ways, we just disable the conda-forge upload logic altogether in the prior commits. Additional we enable GHA artifact storage. This way preserve the artifacts from the conda-build jobs somehow. There are just preserved on GHA instead of being uploaded to Anaconda.org. Here we add a new workflow to allow RAPIDS to handle uploads itself. This way any upload strategy can be specified. Also if the upload process changes in the future, this workflow can be updated to align with that process. Lastly conda-smithy doesn't touch this custom workflow file, so it will be unaltered by regular conda-smithy re-rendering operations. --- .github/workflows/upload.yml | 29 +++++++++++++++++++++++++---- 1 file changed, 25 insertions(+), 4 deletions(-) diff --git a/.github/workflows/upload.yml b/.github/workflows/upload.yml index 48f822c2..2b078880 100644 --- a/.github/workflows/upload.yml +++ b/.github/workflows/upload.yml @@ -13,14 +13,35 @@ jobs: runs-on: ubuntu-latest if: ${{ github.event.workflow_run.conclusion == 'success' }} steps: - - run: | - echo "Build passing" - exit 0 + - uses: actions/download-artifact@v4 + + - uses: conda-incubator/setup-miniconda@v3 + with: + activate-environment: base + conda-solver: libmamba + channels: + - conda-forge + channel-priority: strict + show-channel-urls: true + miniforge-version: latest + + - name: Conda environment info + shell: bash -l {0} + run: | + conda info + conda config --show + conda list --show-channel-urls + + - name: Upload packages to `rapidsai-nightly + shell: bash -l {0} + run: | + # Upload packages + ls on-failure: runs-on: ubuntu-latest if: ${{ github.event.workflow_run.conclusion == 'failure' }} steps: - run: | - echo "Build failing" + echo "Building the Conda packages failed" exit 1