diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 73b3dbb..2588f60 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -36,6 +36,7 @@ jobs: echo "::error::$TAG isn't v..: no release made" exit 1 fi - # The words under this tag's heading in CHANGELOG.md, up to the next heading. - notes=$(awk -v tag="$TAG" '/^## / { on = ($2 == tag); next } on' CHANGELOG.md) + # The section under "## [1.2.0] - " in CHANGELOG.md (Keep a Changelog) for tag v1.2.0, up to + # the next "## " heading, without the link lines at the end and the blank lines before it. + notes=$(awk -v ver="[${TAG#v}]" '/^## / { on = ($2 == ver); next } /^\[[^]]*\]: / { next } on' CHANGELOG.md | sed '/./,$!d') gh release create "$TAG" --verify-tag --title "$TAG" --notes "${notes:-$TAG}" $pre diff --git a/CHANGELOG.md b/CHANGELOG.md index b5dfead..fbf45d1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,17 @@ # Changelog -Each release is a heading with its tag. The release workflow uses the words under it as the release's notes. +All notable changes to this skill are documented in this file. Keep each release short: at most 6 bullets. -## v1.0.0 +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), +and this skill adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [Unreleased] + +## [1.0.0] - 2026-11-27 + +### Added - The first release. + +[unreleased]: https://github.com/OWNER/REPO/compare/v1.0.0...HEAD +[1.0.0]: https://github.com/OWNER/REPO/releases/tag/v1.0.0 diff --git a/README.md b/README.md index b81785d..cefdefa 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,22 @@ To try the skill in Claude Code before you release it, copy the folder into `~/. ## Release it -1. Add a heading for the version to `CHANGELOG.md` (`## v1.1.0`), with what changed under it. +1. Add the version's section to `CHANGELOG.md`, in [Keep a Changelog 1.1](https://keepachangelog.com/en/1.1.0/)'s format: a `## [1.1.0] - YYYY-MM-DD` heading, then each change as a bullet under one of `### Added`, `Changed`, `Deprecated`, `Removed`, `Fixed` or `Security`. Keep it to **at most 6 bullets**: Spacesheep shows them on the skill's Versions tab. + + ```markdown + ## [Unreleased] + + ## [1.1.0] - 2026-12-01 + + ### Added + + - A weekly summary at the top of the report. + + ### Fixed + + - Totals counted the first week twice. + ``` + 2. Tag and push: ```bash @@ -48,7 +63,7 @@ To try the skill in Claude Code before you release it, copy the folder into `~/. git push origin v1.1.0 ``` -3. `release.yml` checks the skill at that tag and makes the release, with the changelog's words as its notes. +3. `release.yml` checks the skill at that tag and makes the release. Its notes are the `[1.1.0]` section of `CHANGELOG.md`, so write the section before you tag (a tag without one gets its name as its only note). If you edit a release's notes on GitHub later, Spacesheep updates them. - **A version is a tag `v..` with a release.** A tag like `v1.1.0-rc1` becomes a pre-release, which Spacesheep ignores. - **Never move a tag.** Spacesheep keeps each tag once, with the commit it pointed at. A tag moved to other files is refused: tag a new version instead.