Repository navigation
Add cuDF Java Maven Central publish job #23714
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
Changes from 15 commits
f781433
db96474
e7746fe
29c8680
88feafb
3615fcc
06dc96e
3a1e82f
c3f3705
2dc24fb
0f50de5
6c56ddf
e506702
7534a65
fdc2169
69a2894
d13071d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -543,8 +543,15 @@ jobs: | |
| java-gather: | ||
| needs: [java-build] | ||
| runs-on: linux-amd64-cpu4 | ||
| # The container image is only used to make rapids-is-release-build | ||
| # available for the release-flag check below. The artifact assembly | ||
| # itself does not depend on any image-specific tooling. | ||
| container: | ||
| image: "rapidsai/ci-wheel:26.10-cuda12.9.2-rockylinux8-py3.11" | ||
| permissions: | ||
| contents: read | ||
| outputs: | ||
| is_release: ${{ steps.release-check.outputs.is_release }} | ||
| steps: | ||
| - name: Checkout code repo | ||
| uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 | ||
|
|
@@ -568,3 +575,33 @@ jobs: | |
| name: cudf_java_maven_repo | ||
| path: ${{ runner.temp }}/maven-repo | ||
| if-no-files-found: error | ||
| - name: Determine release-build status | ||
| id: release-check | ||
| run: | | ||
| if rapids-is-release-build; then | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I was thinking maybe this could be done in
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I thought about that, but placing it there felt out of place (the script is release-agnostic), and that is why I added it as an explicit step here. |
||
| echo "is_release=true" >> "${GITHUB_OUTPUT}" | ||
| else | ||
| echo "is_release=false" >> "${GITHUB_OUTPUT}" | ||
| fi | ||
|
coderabbitai[bot] marked this conversation as resolved.
Resolved
|
||
|
|
||
| # Publish tagged release candidates to Maven Central via the Sonatype | ||
| # Central Publisher Portal. Release path only (vYY.MM.PP tags). Does not | ||
| # publish nightlies. | ||
| # TODO: add nightly Sonatype snapshot publishing. | ||
| java-publish: | ||
| needs: [java-gather] | ||
| if: ${{ needs.java-gather.outputs.is_release == 'true' && (inputs.build_type || 'branch') == 'branch' }} | ||
| permissions: | ||
| actions: read | ||
| contents: read | ||
| uses: rapidsai/shared-workflows/.github/workflows/maven-publish.yaml@main | ||
| secrets: | ||
| GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }} | ||
| GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} | ||
| MAVEN_DEPLOY_TOKEN: ${{ secrets.MAVEN_DEPLOY_TOKEN }} | ||
| with: | ||
| publication-type: 'rc' | ||
| artifact-name: cudf_java_maven_repo | ||
| source-git-sha: ${{ inputs.sha || github.sha }} | ||
| # false = validate + drop (safe). true = stage PENDING for manual publish. | ||
| stage-for-maven-central-publish: true | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a good case for using the
26.10-latesttag since nothing depends on the image details. We want to avoid hardcoding CUDA, Python, and OS versions.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated.