Skip to content

Publish releases from CI on tag push, release 4.6.0-3 - #102

Merged
shuttie merged 1 commit into
mainfrom
ci/release
Sep 22, 2026
Merged

shuttie merged 1 commit into
mainfrom
ci/release

Conversation

@shuttie

@shuttie shuttie commented Sep 22, 2026

Copy link
Copy Markdown
Contributor

Follow-up to #101: releases were still mvn deploy from a laptop.

Pushing a tag X.Y.Z-N now runs release.yml: builds the natives on all five platforms via the same native.yml that ci.yml uses (the matrix is defined once now), checks the pom version equals the tag, runs mvn deploy (tests included, on linux/x86_64) and creates the GitHub release with the jars and .asc files attached. Same shape and secret names as ltrlib's release workflow, minus its prerelease flag since every version here has a -N suffix.

This bumps to 4.6.0-3 so the first tag after merge validates the whole path. The SONATYPE_USERNAME, SONATYPE_PASSWORD, PGP_SECRET, PGP_PASSPHRASE secrets need to be visible to this repo before tagging.

Checked locally: mvn -DskipTests package with maven-gpg-plugin 3.2.8, actionlint clean. The publish step itself can only be exercised by the tag.

The native matrix moves to a reusable native.yml so ci.yml and the new
release.yml share one definition. release.yml mirrors ltrlib's: tag X.Y.Z-N,
same SONATYPE_*/PGP_* secrets, pom version must equal the tag, mvn deploy
(tests run as the release smoke check), GitHub release with jars attached.
maven-gpg-plugin 3.2.8 reads MAVEN_GPG_PASSPHRASE and uses pinentry loopback
on the headless runner.
@shuttie
shuttie merged commit 7d5a30f into main Sep 22, 2026
17 checks passed
@shuttie
shuttie deleted the ci/release branch September 22, 2026 12:56
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