summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSean Kurtz <seankurtz75@gmail.com>2026-11-25 00:00:05 -0600
committerSean Kurtz <seankurtz75@gmail.com>2026-11-25 00:00:05 -0600
commitad369e0014e560289b5824499b83606bfe69ea81 (patch)
tree3c7d8572a98575634cee2005f07bd5c114584ed4
parent805ac9728df933f41fafb168bccd7d3107146527 (diff)
downloadwhoson-ad369e0014e560289b5824499b83606bfe69ea81.tar.gz
release: take the notes from CHANGELOG.md
The first release body was GitHub's generated list of every merged PR. The changelog entry for the version is the curated record, so the workflow now extracts that section and refuses a version it cannot find.
-rw-r--r--.github/workflows/release.yml14
-rw-r--r--CONTRIBUTING.md4
2 files changed, 15 insertions, 3 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 9874865..3ce4386 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -35,11 +35,23 @@ jobs:
-o "whoson-$VERSION.tar.gz" "$GITHUB_SHA"
sha256sum "whoson-$VERSION.tar.gz" > "whoson-$VERSION.tar.gz.sha256"
+ - name: notes from the changelog
+ run: |
+ awk -v v="$VERSION" \
+ 'BEGIN { p = 0 }
+ $0 ~ "^## " v "$" { p = 1; next }
+ p && /^## / { exit }
+ p' CHANGELOG.md > notes.md
+ if [ ! -s notes.md ]; then
+ echo "CHANGELOG.md has no '## $VERSION' section" >&2
+ exit 1
+ fi
+
- name: release
env:
GH_TOKEN: ${{ github.token }}
run: |
gh release create "$GITHUB_REF_NAME" \
--title "whoson $VERSION" \
- --generate-notes \
+ --notes-file notes.md \
"whoson-$VERSION.tar.gz" "whoson-$VERSION.tar.gz.sha256"
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 007f5de..d6adecf 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -43,8 +43,8 @@ syntax (`?=` is out), and let `make -n` stay free of side effects.
1. Bump `VERSION` in the `Makefile` and add the entry to `CHANGELOG.md`.
2. Merge, then tag `main` with `v<version>` and push the tag.
3. `.github/workflows/release.yml` refuses a tag that disagrees with
- `VERSION`, builds the source archive, attaches it with its sha256, and
- writes the notes.
+ `VERSION`, takes the release notes from that `CHANGELOG.md` section, and
+ attaches the source archive with its sha256.
There is no binary in a release: it links the ZOAU 64-bit DLL and only builds
on z/OS, so a release ships the sources and the build instructions.