Skip to content

Commit a12fbf3

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 ee1798e commit a12fbf3

File tree

1 file changed

+25
-4
lines changed

1 file changed

+25
-4
lines changed

.github/workflows/upload.yml

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,35 @@ jobs:
1313
runs-on: ubuntu-latest
1414
if: ${{ github.event.workflow_run.conclusion == 'success' }}
1515
steps:
16-
- run: |
17-
echo "Build passing"
18-
exit 0
16+
- uses: actions/download-artifact@v4
17+
18+
- uses: conda-incubator/setup-miniconda@v3
19+
with:
20+
activate-environment: base
21+
conda-solver: libmamba
22+
channels:
23+
- conda-forge
24+
channel-priority: strict
25+
show-channel-urls: true
26+
miniforge-version: latest
27+
28+
- name: Conda environment info
29+
shell: bash -l {0}
30+
run: |
31+
conda info
32+
conda config --show
33+
conda list --show-channel-urls
34+
35+
- name: Upload packages to `rapidsai-nightly
36+
shell: bash -l {0}
37+
run: |
38+
# Upload packages
39+
ls
1940
2041
on-failure:
2142
runs-on: ubuntu-latest
2243
if: ${{ github.event.workflow_run.conclusion == 'failure' }}
2344
steps:
2445
- run: |
25-
echo "Build failing"
46+
echo "Building the Conda packages failed"
2647
exit 1

0 commit comments

Comments
 (0)