Skip to content

feat: Add GitHub release workflow publishing to Maven Central - #1393

Open
ZPascal wants to merge 1 commit into
cloudfoundry:5.x.xfrom
ZPascal:release-workflow-5.x.x
Open

ZPascal wants to merge 1 commit into
cloudfoundry:5.x.xfrom
ZPascal:release-workflow-5.x.x

Conversation

@ZPascal

@ZPascal ZPascal commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

This moves the 5.x.x release from Concourse to GitHub Actions.

There is a new release.yml workflow that you start by hand on 5.x.x (or main). You give it the release version and the next snapshot version. It then:

  • creates the release and snapshot commits with ci/create-release.sh
  • deploys the tagged release to Maven Central
  • pushes the tag and the new snapshot version to the branch the workflow was started on
  • creates a GitHub release

In the parent pom.xml I swapped artifactory-maven-plugin for central-publishing-maven-plugin. The Artifactory plugin was only there for the Concourse promote step.

Before the first run:

  • Repo secret CENTRAL_USERNAME (Central Portal user token name)
  • Repo secret CENTRAL_PASSWORD (Central Portal user token)
  • Repo secret MAVEN_GPG_PRIVATE_KEY (armored private key used to sign)
  • Repo secret MAVEN_GPG_PASSPHRASE (passphrase of that key)
  • org.cloudfoundry namespace verified in the Central Portal
  • Branch protection on 5.x.x lets the workflow push

I haven't run the workflow yet. I only checked that the YAML parses and ./mvnw validate passes. The old Concourse scripts in ci/ are removed; only create-release.sh is kept, since the workflow uses it.

@ZPascal
ZPascal marked this pull request as draft October 27, 2026 20:39
@ZPascal
ZPascal force-pushed the release-workflow-5.x.x branch from 7b48832 to 89ffca9 Compare October 27, 2026 20:41
Replace the Concourse release pipeline with a manually triggered workflow
that creates the release and snapshot commits, signs and deploys to Maven
Central via the Central Portal, pushes the tag and creates a GitHub release.
Swap artifactory-maven-plugin for central-publishing-maven-plugin.
@ZPascal
ZPascal force-pushed the release-workflow-5.x.x branch from 9be424e to f8a2418 Compare October 27, 2026 21:03
@ZPascal ZPascal changed the title ci: Add GitHub release workflow publishing to Maven Central feat: Add GitHub release workflow publishing to Maven Central Oct 27, 2026
@ZPascal
ZPascal marked this pull request as ready for review October 27, 2026 21:21

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant