-
Notifications
You must be signed in to change notification settings - Fork 138
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
publish snapshots to maven via GHA #743
Conversation
Codecov Report
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more @@ Coverage Diff @@
## 2.x #743 +/- ##
=========================================
Coverage 84.39% 84.39%
Complexity 1591 1591
=========================================
Files 135 135
Lines 5935 5935
Branches 560 560
=========================================
Hits 5009 5009
Misses 690 690
Partials 236 236
Flags with carried forward coverage won't be shown. Click here to find out more. Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
.github/workflows/maven-publish.yml
Outdated
export SONATYPE_PASSWORD=$(aws secretsmanager get-secret-value --secret-id maven-snapshots-password --query SecretString --output text) | ||
echo "::add-mask::$SONATYPE_USERNAME" | ||
echo "::add-mask::$SONATYPE_PASSWORD" | ||
./gradlew publishPluginZipPublicationToSnapshotsRepository |
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.
Will this also publish ml-commons client jar to maven?
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.
No it won't. If want to publish jars to according task needs to be called. This task is only for publishing zips and associated poms. You can call multiple tasks so if we want jars to publish just add it after this task
.github/workflows/maven-publish.yml
Outdated
matrix: | ||
jdk: [17] | ||
platform: ["ubuntu-latest"] |
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 just 1 value so you can remove the entire matrix block
Signed-off-by: Xun Zhang <[email protected]>
Description
Publish snapshots to maven via GHA
Issues Resolved
[#734 ]#734
Tests
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.