Add make tag for release tagging

- `prerelease`: version-consistency grep across CHANGELOG, install,
  install.ps1, and both man pages (extracted from `release` target)
- `tag`: depends on `prerelease`; signs and pushes the version tag
- RELEASE.md: replace manual tag/push steps with `make tag`
This commit is contained in:
Junegunn Choi
2026-05-24 01:19:01 +09:00
parent 5e137613d3
commit 3953d1c649
2 changed files with 24 additions and 9 deletions
+10 -8
View File
@@ -15,18 +15,20 @@ triggered by a tag push.
- `man/man1/fzf.1`
- `man/man1/fzf-tmux.1`
2. Sign and push the tag.
2. Verify file consistency, sign the tag, and push the tag.
```sh
export V=v0.73.0
git tag -s $V -m $V
# Push the tag only. master on origin still points to the old version,
# so /master/install keeps resolving against existing binaries during
# the publish window.
git push origin $V
make tag VERSION=0.73.0
```
`make tag` runs `prerelease` first (checks that the version
appears in CHANGELOG.md, both man pages, install, and install.ps1)
and only signs + pushes the tag if the checks pass.
Only the tag is pushed; `master` on origin still points to the
old version, so `/master/install` keeps resolving against existing
binaries during the publish window.
3. The workflow fires on the tag push and pauses on the `release`
environment gate. Approve it in the Actions tab to release.