Skip to content

Commit c7695d9

Browse files
committed
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.
1 parent 8031ee4 commit c7695d9

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

.github/workflows/upload.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Release
2+
on:
3+
workflow_run:
4+
workflows:
5+
- Build conda package
6+
types:
7+
- completed
8+
9+
jobs:
10+
on-success:
11+
runs-on: ubuntu-latest
12+
if: ${{ github.event.workflow_run.conclusion == "success" }}
13+
steps:
14+
- uses: actions/download-artifact@v4
15+
16+
- uses: conda-incubator/setup-miniconda@v3
17+
with:
18+
activate-environment: base
19+
conda-solver: libmamba
20+
channels:
21+
- conda-forge
22+
channel-priority: strict
23+
show-channel-urls: true
24+
miniforge-version: latest
25+
26+
- name: Conda environment info
27+
shell: bash -l {0}
28+
run: |
29+
conda info
30+
conda config --show
31+
conda list --show-channel-urls
32+
33+
- name: Upload packages to `rapidsai-nightly
34+
shell: bash -l {0}
35+
run: |
36+
# Upload packages
37+
ls
38+
39+
on-failure:
40+
runs-on: ubuntu-latest
41+
if: ${{ github.event.workflow_run.conclusion == "failure" }}
42+
steps:
43+
- run: |
44+
echo "Building the Conda packages failed"
45+
exit 1
46+

0 commit comments

Comments
 (0)