This document describes the step-by-step playbook for cutting a new jasync-sql release from master.
- Push access to
https://github.com/jasync-sql/jasync-sql. - Authenticated GitHub CLI (
gh auth status) withrepo/contents:writeandactions:readpermissions. - Repository secrets configured on GitHub Actions used by
.github/workflows/cd.yml:- Sonatype Central Portal User Token:
SONATYPE_USERNAME_2andSONATYPE_PASSWORD_2(orORG_GRADLE_PROJECT_SONATYPEUSERNAME/ORG_GRADLE_PROJECT_SONATYPEPASSWORD). - GPG signing credentials:
GPG_PRIVATE_KEY(ASCII-armored private key) andGPG_PRIVATE_PASSWORD(or legacySIGNING_KEY_RING_FILE,SIGNING_KEY_ID,SIGNING_PASSWORD).
- Sonatype Central Portal User Token:
Assume X.Y.Z is the version being released (e.g., 2.2.5), PREV_TAG is the previous release tag (e.g., 2.2.4), and NEXT_VERSION is the next patch version (e.g., 2.2.6).
Fetch all remote branches and tags, switch to master, fast-forward to origin/master, and ensure the working tree is clean:
git fetch origin --prune --tags
git checkout master
git merge --ff-only origin/master
git status --shortVerify recent CI checks on master passed:
gh run list --repo jasync-sql/jasync-sql --branch master --workflow ci.yml --limit 3Verify published runtime dependencies in gradle.properties have 0 open CVEs in the GitHub Advisory Database:
./.agents/skills/release_jasync_sql/scripts/check_cves.shInspect version = "..." in build.gradle.kts:
- If
versionis already"X.Y.Z", proceed to Step 3. - If
versiondoes not match"X.Y.Z", updatebuild.gradle.kts, commit, and push toorigin/master(chore: bump version to X.Y.Z) before rebasinggithub-releaseso the release commit itself carriesversion = "X.Y.Z".
Check out github-release tracking origin/github-release and rebase onto master:
git checkout -B github-release --track origin/github-release
git rebase master(In normal mainline releases origin/github-release is an ancestor of master, so this is a clean fast-forward.)
Approval / Irreversible Action: Pushing
github-releaseimmediately triggers.github/workflows/cd.yml(./gradlew clean build publishToSonatype closeAndReleaseSonatypeStagingRepository --no-daemon --no-parallel -x test), publishing all 6 artifacts (jasync-common,jasync-pool,jasync-mysql,jasync-postgresql,jasync-postgis-jts,jasync-r2dbc-mysql) to Sonatype Maven Central.
git push origin github-releaseMonitor the CD workflow run until completion:
gh run list --repo jasync-sql/jasync-sql --branch github-release --workflow cd.yml --limit 1-
Preview GitHub's auto-generated release notes from
PREV_TAGtogithub-release:gh api --method POST repos/jasync-sql/jasync-sql/releases/generate-notes \ -f tag_name="X.Y.Z" \ -f target_commitish="github-release" \ -f previous_tag_name="PREV_TAG"
-
Review and curate the notes (preserve feature/fix/doc PRs and
New Contributors, condensing routine build/test bumps if needed). -
Publish the release as
Latesttargetinggithub-release(always targetgithub-releaserather thanmasterso tagX.Y.Zpoints to the exact release commit whereversion = "X.Y.Z", not the post-releaseNEXT_VERSIONbump commit):gh release create "X.Y.Z" \ --repo jasync-sql/jasync-sql \ --target github-release \ --title "X.Y.Z" \ --latest \ --notes-file <notes_file>
Verify it appears at
https://github.com/jasync-sql/jasync-sql/releases.
Switch back to master, update documentation snippets to the newly released X.Y.Z, bump build.gradle.kts to NEXT_VERSION (X.Y.(Z+1)), commit, and push:
-
Switch to
master:git checkout master
-
Update
README.mdMaven (<version>X.Y.Z</version>) and Gradle (com.github.jasync-sql:jasync-mysql:X.Y.Z,com.github.jasync-sql:jasync-postgresql:X.Y.Z) examples toX.Y.Z. -
Update
build.gradle.ktsversion = "NEXT_VERSION". -
Commit and push directly to
origin/master:git add build.gradle.kts README.md git commit -m "chore: bump version to NEXT_VERSION and update README to X.Y.Z" git push origin master