Skip to content

Add a release workflow and state the database migration contract - #277

Merged
dmccoystephenson merged 1 commit into
mainfrom
release-automation-prereqs
Nov 21, 2026
Merged

dmccoystephenson merged 1 commit into
mainfrom
release-automation-prereqs

Conversation

@dmccoystephenson

Copy link
Copy Markdown
Member

Prepares Viron for releases made by the fleet's release automation.

Changes

  • .github/workflows/release.yml (new). Builds viron-<v>.jar with JDK 21 (./mvnw -B package, so the tests run) with a viron-<v>.jar.sha256 sidecar in sha256sum format, checked with sha256sum -c.
    • push of a bare X.Y.Z tag: checks the pom.xml version equals the tag, creates the release Viron X.Y.Z if it does not exist (gh release create --verify-tag, full release), and uploads the jar with --clobber.
    • workflow_dispatch with a tag input: the same for an existing tag; with no tag, a dry run (build and checks, jar kept as a workflow artifact, nothing attached).
    • pull_request touching release.yml or pom.xml: the dry run.
    • permissions: contents: write only on the release job; runner ubuntu-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 to db-scripts/setup/*.sql after a release ships with a new migration file.
  • docs/RELEASING.md (new) and a pointer from the README's persistence line to db-scripts/README.md.

No application code changes.

Testing

  • The workflow's dry run runs on this pull request (it touches release.yml); existing CI runs as before.

drafted by Claude on behalf of Daniel Stephenson
🤖 Generated with Claude Code

- .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]>
@dmccoystephenson
dmccoystephenson merged commit 728a807 into main Nov 21, 2026
4 checks passed
@dmccoystephenson
dmccoystephenson deleted the release-automation-prereqs branch November 21, 2026 05:29
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