Repository navigation
Add a release workflow and state the database migration contract - #277
Merged
Merged
Conversation
- .github/workflows/release.yml builds viron-<v>.jar (JDK 21, ./mvnw -B package) with a .sha256 sidecar. A pushed X.Y.Z tag checks the pom.xml version equals the tag, creates the release if missing and uploads the jar; workflow_dispatch with no tag and pull requests touching the release build are dry runs. - db-scripts/README.md states the contract: a released migration is never edited or deleted, and a change to db-scripts/setup/*.sql after a release ships with a new migration. - docs/RELEASING.md describes versions, tags and the download. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Prepares Viron for releases made by the fleet's release automation.
Changes
.github/workflows/release.yml(new). Buildsviron-<v>.jarwith JDK 21 (./mvnw -B package, so the tests run) with aviron-<v>.jar.sha256sidecar insha256sumformat, checked withsha256sum -c.pushof a bareX.Y.Ztag: checks thepom.xmlversion equals the tag, creates the releaseViron X.Y.Zif it does not exist (gh release create --verify-tag, full release), and uploads the jar with--clobber.workflow_dispatchwith ataginput: the same for an existing tag; with no tag, a dry run (build and checks, jar kept as a workflow artifact, nothing attached).pull_requesttouchingrelease.ymlorpom.xml: the dry run.permissions: contents: writeonly on the release job; runnerubuntu-24.04.db-scripts/README.md(new): what the setup, migration and teardown scripts are, and the contract the release automation checks: a released migration file is never edited or deleted, and any change todb-scripts/setup/*.sqlafter a release ships with a new migration file.docs/RELEASING.md(new) and a pointer from the README's persistence line todb-scripts/README.md.No application code changes.
Testing
release.yml); existing CI runs as before.drafted by Claude on behalf of Daniel Stephenson
🤖 Generated with Claude Code