Attach the release zips when a GitHub Release is published
Merged
PO
14d ago+124+124+012345678901234567890123456789-24-24-01234567890123456789
What has been implemented
Publishing the GitHub Release vX.Y.Z on main is the only manual step of a release: a workflow then builds the zips of the tagged commit, checks them against catalog/ and attaches them to the release.
Before: how a release is published by hand
After the merge, a person tags the commit, builds the zips and attaches the right ones to the GitHub Release (steps in #32). Nothing compares the zips with catalog/ before they are attached: a wrong zip shows only when Spec Kit refuses to install it.
flowchart LR
A["release PR merged"] --> B["by hand:<br>tag vX.Y.Z on the merge commit"]
B --> C["by hand:<br>build_release.py zips"]
C --> D["by hand: create the GitHub Release<br>with the zips that catalog/<br>points to vX.Y.Z"]
D --> F["repos:<br>specify bundle update"]
classDef manual fill:#fef9c3,stroke:#ca8a04,color:#713f12
class B,C,D manual
After: release workflow, from the release pull request to the repos
flowchart LR
A["release PR merged:<br>versions, catalog, CHANGELOG"] --> B["a person publishes<br>the GitHub Release vX.Y.Z<br>on main"]
B --> C["Release workflow:<br>build the zips"]
C --> D{"sha256 = catalog/?"}
D -->|"yes"| E["attach the zips<br>to the release"]
D -->|"no"| X["fail, attach nothing"]
E --> F["repos:<br>specify bundle update"]
classDef manual fill:#fef9c3,stroke:#ca8a04,color:#713f12
classDef bad fill:#fee2e2,stroke:#dc2626,color:#7f1d1d
class B manual
class X bad
- The workflow attaches only the zips whose URL in
catalog/points tovX.Y.Z. Unchanged components keep the zips of earlier releases. - A zip is missing or has another sha256 when a pull request merged after the release pull request changed a component.
What has been tested
On 2026-11-18, in a private copy of this repo, at the head of #43:
- Release
v1.5.0on the release commit: the workflow attached the 10 zips, each with the sha256 ofcatalog/. - Release
v1.5.0on a commit that changes a command without a new catalog: the workflow failed onopsmill-1.5.0.zipand attached nothing.
How to review
- c74a00c adds the Release workflow and the command
build_release.py assets VERSION DIR, and replaces the manual release steps incatalog/README.md. To review.
š¤ Generated with Claude Code