Skip to content

Add scripts/release.sh for the release procedure - #169

Open
Surfrdan wants to merge 1 commit into
OCFL:mainfrom
Surfrdan:claude/release-sh-safety-6d2f29
Open

Surfrdan wants to merge 1 commit into
OCFL:mainfrom
Surfrdan:claude/release-sh-safety-6d2f29

Conversation

@Surfrdan

Copy link
Copy Markdown
Collaborator

Adds scripts/release.sh, which runs the release steps from docs/DEVELOPMENT.md with checks, and documents it in the Release section.

  • Stops on the first error; checks branch, clean tree, pom version, and that the tag/branch don't already exist locally or on the remote.
  • Test-signs with gpg and sets GPG_TTY before anything is pushed (a stale keyring lock and a missing pinentry TTY both broke the 2.2.4 deploy).
  • Pauses for README/CHANGELOG edits and the PR merge; finds the release commit and checks its pom version before tagging.
  • Asks before each push and before mvn clean deploy -P release. Commits tracked files only. RELEASE_REMOTE overrides the push remote (default origin).

Verified: bash -n; an earlier version ran end to end in a scratch clone with a local remote and stub mvn, and was used for the 2.2.4 release (#168, tag v2.2.4).

🤖 Generated with Claude Code

Scripts the steps in docs/DEVELOPMENT.md: stops on errors, checks the
tree, versions, tag and branch before starting, test-signs with gpg,
pauses for README/CHANGELOG edits and the PR merge, verifies the pom
version at the commit it tags, and asks before each push and the deploy.
Used to release 2.2.4.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch was successfully deployed

1 active deployment
ci — b5016d63 Deployed Nov 25, 2026 by Surfrdan via postgres #359
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