Skip to content

Open a draft GitHub release after Maven Central - #8

Merged
abashev merged 2 commits into
mainfrom
github-draft-release
Sep 26, 2026
Merged

abashev merged 2 commits into
mainfrom
github-draft-release

Conversation

@abashev

@abashev abashev commented Sep 26, 2026

Copy link
Copy Markdown

The formatter's releases end in a draft GitHub release on the tag; the plugin's had none, because
release.yml published to Maven Central only.

  • A second job, github-release, runs once the central job is done. It takes the jar that went to
    Maven Central, which the central job now hands over as an artifact, and mvn -P github-release jreleaser:release opens a draft release on the tag with that jar, checksums_sha256.txt, an
    .asc for each and the commits since the previous tag, the shape of the formatter's releases.
    Publishing the draft stays a click on GitHub.
  • JReleaser's release command deploys as well, so the github-release profile switches the Maven
    Central deployer off and the GitHub release on. Without the profile the POM does what it did
    before.

Rehearsed in dry-run on a copy with a local 2.27.0.2 tag: the Central deployment still verifies the POM
and builds the bundle, and the release skips the deployer, lists the commits since 2.27.0.1 and would
upload the jar, the checksum file and their signatures.

2.27.0.1 already has its draft, made by hand from the jar and .asc on Maven Central (checked against
the release key 100481FDAEE94DE9).

The formatter's releases end in a draft GitHub release on the tag, and
the plugin's had none: release.yml published to Maven Central only. A
second job now runs once the central job is done. It takes the jar that
went to Maven Central, handed over by the central job, and JReleaser
opens a draft release on the tag with that jar, a checksum file, a
signature for each and the commits since the previous tag, the shape of
the formatter's releases. Publishing the draft stays a click on GitHub.

JReleaser's release command deploys as well, so the github-release
profile switches the Maven Central deployer off and the GitHub release
on; without the profile the POM does what it did before. Both were
rehearsed in dry-run on a copy with a local 2.27.0.2 tag: the Central
deployment still verifies the POM and builds the bundle, and the release
skips the deployer and would upload the jar, checksums_sha256.txt and
their .asc files.
Comment on lines +91 to +93
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
@abashev
abashev merged commit d79f3d2 into main Sep 26, 2026
8 checks passed
@abashev
abashev deleted the github-draft-release branch September 26, 2026 09:42
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.

2 participants