Repository navigation
Automate release/publish process to public Maven repository - #281
Conversation
|
Where does this differ from the reference impl https://github.com/uber/h3-java/blob/master/.github/workflows/release.yml and why? A few that seem missing/different.
|
|
List of differences:
|
3017a63 to
336e5b9
Compare
|
Thanks for putting this together. Motif already uses the vanniktech plugin (0.34.0), the same setup as NullAway's publish-release.yml, so I think this workflow can shrink to roughly NullAway's size (~40 lines instead of ~145). Redundant pieces
The Suggested publish step- name: Publish
env:
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.MAVEN_CENTRAL_USER_TOKEN_USERNAME }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.MAVEN_CENTRAL_USER_TOKEN_PASSWORD }}
ORG_GRADLE_PROJECT_signingInMemoryKeyId: ${{ secrets.PGP_PRIVATE_KEY_ID }}
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.PGP_SIGNING_KEY_PRIVATE_KEY }}
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.PGP_SIGNING_KEY_PASSWORD }}
run: ./gradlew publishToMavenCentral -Porg.gradle.java.installations.fromEnv=JAVA_HOME_8_X64,JAVA_HOME_11_X64Plus, in
Risks
Comment drafted with an AI agent. |
|
@tyvsmith updated as per feedback |
6d45889 to
fd0dfdb
Compare
Create a GitHub Release from the matching CHANGELOG.md section after publishing, and fail before publishing when that section is missing.
tyvsmith
left a comment
There was a problem hiding this comment.
Should be good after CI passes.
|
Separately, we should look into putting up manual dispatch support that can create tag and take the version number as input. Will give maintainers a once click release from the actions page. |
Secrets are now configured at organization level, this allows us to automate release without granting individuals direct acces to the keys.
This PR is providing the new workflow for this. See RELEASING.md for the process to release