Skip to content

Commit 71a4cf8

Browse files
rustyconoverclaude
andcommitted
build: auto-release to Maven Central (no manual Portal click)
Flip automaticRelease false -> true so a published GitHub release goes live on Maven Central once it passes Portal validation, with no manual "Publish" click. The coordinate has been through Portal validation since 0.1.0, so the one-time gate is no longer needed. (vgi-rpc-java already auto-releases.) Update release.yml comments to match. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent a8d0eb0 commit 71a4cf8

2 files changed

Lines changed: 10 additions & 9 deletions

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@ name: Release to Maven Central
44
# Publishes the library module (farm.query:vgi) to the Sonatype Central Portal
55
# when a GitHub Release is published.
66
#
7-
# NOTE: the upload is validated but NOT auto-released (automaticRelease = false
8-
# in build.gradle.kts). After this workflow succeeds, finish the release with
9-
# the "Publish" button at https://central.sonatype.com/publishing/deployments.
7+
# NOTE: the upload auto-releases (automaticRelease = true in build.gradle.kts):
8+
# once it passes Portal validation it goes live on Maven Central with no manual
9+
# "Publish" click. Set automaticRelease = false to re-gate on the Portal UI
10+
# (https://central.sonatype.com/publishing/deployments).
1011
#
1112
# Required repository secrets:
1213
# MAVEN_CENTRAL_USERNAME - Central Portal user-token username
@@ -71,7 +72,7 @@ jobs:
7172
- name: Test
7273
run: ./gradlew --no-daemon :vgi:test
7374

74-
- name: Publish to Maven Central (manual release in Portal UI)
75+
- name: Publish to Maven Central (auto-released after validation)
7576
run: ./gradlew --no-daemon :vgi:publishToMavenCentral
7677
env:
7778
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.MAVEN_CENTRAL_USERNAME }}

build.gradle.kts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,11 @@ subprojects {
107107
}
108108

109109
extensions.configure<com.vanniktech.maven.publish.MavenPublishBaseExtension> {
110-
// Upload to the Central Portal but gate the final release on a
111-
// manual "Publish" click in the Portal UI (https://central.sonatype.com/
112-
// publishing/deployments). Flip to automaticRelease = true once the
113-
// coordinate has been through Portal validation at least once.
114-
publishToMavenCentral(automaticRelease = false)
110+
// Auto-release to Maven Central: once the upload passes Portal
111+
// validation the deployment is published without a manual "Publish"
112+
// click. (The coordinate has been through validation since 0.1.0;
113+
// set this back to false to re-gate on the Portal UI.)
114+
publishToMavenCentral(automaticRelease = true)
115115

116116
// Sign only when a key is available (CI / local release). Plain
117117
// `publishToMavenLocal` and contributor builds without a key still work.

0 commit comments

Comments
 (0)