Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Start GHA workflow to publish to release channel #56

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Release
on:
workflow_run:
workflows:
- Build conda package
branches:
- main
types:
- completed

jobs:
on-success:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == "success" }}
steps:
- 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: Copy `rapidsai-nightly` packages to `rapidsai`
shell: bash -l {0}
run: |
# Environment info
conda info
conda config --show
conda list --show-channel-urls

# Copy over packages
VERSION=2.0.3
conda server copy --to-owner rapidsai rapidsai-nightly/libxgboost/$VERSION
conda server copy --to-owner rapidsai rapidsai-nightly/py-xgboost/$VERSION
conda server copy --to-owner rapidsai rapidsai-nightly/r-xgboost/$VERSION
conda server copy --to-owner rapidsai rapidsai-nightly/xgboost/$VERSION
Comment on lines +34 to +39
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a stub that would need to be filled out more correctly to handle the copying

For example it could query conda build --output or we could use conda search to pick up the most recent packages and copy those


on-failure:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == "failure" }}
steps:
- run: |
echo "Building the Conda packages failed"
exit 1

Loading