Skip to content

ci: publish a GitHub Release on tag push#62

Merged
avanelsas merged 1 commit into
mainfrom
feature/auto-publish-releases
May 22, 2026
Merged

ci: publish a GitHub Release on tag push#62
avanelsas merged 1 commit into
mainfrom
feature/auto-publish-releases

Conversation

@avanelsas
Copy link
Copy Markdown
Owner

Problem

Pushing a vN.N.N tag triggers pages.yml (demo deploy) but nothing ever created a GitHub Release. The Releases page had stalled at v0.3.0 while tags v0.4.0–v0.7.0 went unpublished.

Fix

New workflow .github/workflows/release.yml — a sibling of pages.yml on the same v* tag-push trigger:

  • Lifts the matching ## [version] block out of CHANGELOG.md as release notes.
  • Publishes the Release via gh release create --latest.
  • Idempotent — a workflow re-run skips an already-published tag.
  • A missing CHANGELOG.md section fails the run loudly rather than publishing empty notes (a correctly-cut release always has one — scripts/release.clj promotes it).

The tag is still cut by hand by the maintainer (scripts/release.clj + CLAUDE.md); this workflow only turns the pushed tag into a published Release.

Scope note

This takes effect for future tags only. The already-missing releases (v0.4.0, v0.5.0, v0.6.0, v0.6.1, v0.7.0) were published out-of-band as part of this work, so the Releases page is already complete — v0.7.0 is Latest, no gaps. The v0.6.1 tag was also local-only and has now been pushed.

Checks

  • clj-kondo / cljfmt — clean (no CLJS touched; the change is one workflow file).
  • release.yml YAML validated; the CHANGELOG-extraction awk verified locally against every [x.y.z] section.

🤖 Generated with Claude Code

Pushing a vN.N.N tag deployed the demo (pages.yml) but never created
a GitHub Release, so the Releases page stalled at v0.3.0 while tags
v0.4.0-v0.7.0 went unpublished.

Add release.yml: on a v* tag push it lifts the matching CHANGELOG.md
section as release notes and publishes the Release via gh release
create. Idempotent - a re-run skips an already-published tag.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@avanelsas avanelsas merged commit f065f62 into main May 22, 2026
1 check passed
@avanelsas avanelsas deleted the feature/auto-publish-releases branch May 22, 2026 12:28
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