Skip to content
Myr

RELEASE.md

This file

Path

RELEASE.md

58 lines · 1.9 KiB · Markdown

Last changed by

landed by oscabrielc0a193e

History of this file

Take it

Add GitHub Actions release workflowJunegunn Choibefore adoption5e13761

lines 1–9why, one step back
1Release process
2===============34Building, signing, notarizing, and publishing is handled by5[`.github/workflows/release.yml`](.github/workflows/release.yml),6triggered by a tag push.78## Steps9101. Sign in at https://developer.apple.com/account and accept any pending11 agreements (e.g. an updated Apple Developer Program License Agreement).12 Otherwise notarization fails.13142. Update version in the following files and commit on `master`:

Add GitHub Actions release workflowJunegunn Choibefore adoption5e13761

lines 15–21why, one step back
15 - `CHANGELOG.md`
16 - `main.go`17 - `install`18 - `install.ps1`19 - `man/man1/fzf.1`20 - `man/man1/fzf-tmux.1`21223. Verify file consistency, sign the tag, and push the tag.

Add GitHub Actions release workflowJunegunn Choibefore adoption5e13761

lines 23–24why, one step back
23
24 ```sh25 make tag VERSION=0.74.5

Add GitHub Actions release workflowJunegunn Choibefore adoption5e13761

line 26why, one step back
26 ```

Add `make tag` for release taggingJunegunn Choibefore adoption3953d1c

lines 27–34why, one step back
27
28 `make tag` runs `prerelease` first (checks that the version29 appears in CHANGELOG.md, both man pages, install, and install.ps1)30 and only signs + pushes the tag if the checks pass.3132 Only the tag is pushed; `master` on origin still points to the33 old version, so `/master/install` keeps resolving against existing34 binaries during the publish window.

Add GitHub Actions release workflowJunegunn Choibefore adoption5e13761

line 35why, one step back
35
364. The workflow fires on the tag push and pauses on the `release`

Add GitHub Actions release workflowJunegunn Choibefore adoption5e13761

lines 37–38why, one step back
37 environment gate. Approve it in the Actions tab to release.
38395. After the GitHub release is published, fast-forward `master`:

Add GitHub Actions release workflowJunegunn Choibefore adoption5e13761

lines 40–58why, one step back
40
41 ```sh42 git push origin master43 ```4445## Testing the workflow4647To exercise the workflow without firing a real release:48491. Actions tab -> **Release** -> **Run workflow**.502. Pick a branch and enter the version currently on that branch51 (the version-consistency check requires the input to match the52 files in the checked-out tree).533. Approve the `release` environment gate when prompted.544. Goreleaser runs with `--snapshot --skip=publish`. Signing and55 notarization run; only the GitHub release upload is skipped.5657Use this to validate the workflow YAML, version-extraction logic,58the macOS runner setup, and the signing/notarization credentials.