Debian Codegraph @

RELEASE.md

raw
1 Release process
2 ===============
3
4 Building, signing, notarizing, and publishing is handled by
5 [`.github/workflows/release.yml`](.github/workflows/release.yml),
6 triggered by a tag push.
7
8 ## Steps
9
10 1. Update version in the following files and commit on `master`:
11 - `CHANGELOG.md`
12 - `main.go`
13 - `install`
14 - `install.ps1`
15 - `man/man1/fzf.1`
16 - `man/man1/fzf-tmux.1`
17
18 2. Verify file consistency, sign the tag, and push the tag.
19
20 ```sh
21 make tag VERSION=0.74.4
22 ```
23
24 `make tag` runs `prerelease` first (checks that the version
25 appears in CHANGELOG.md, both man pages, install, and install.ps1)
26 and only signs + pushes the tag if the checks pass.
27
28 Only the tag is pushed; `master` on origin still points to the
29 old version, so `/master/install` keeps resolving against existing
30 binaries during the publish window.
31
32 3. The workflow fires on the tag push and pauses on the `release`
33 environment gate. Approve it in the Actions tab to release.
34
35 4. After the GitHub release is published, fast-forward `master`:
36
37 ```sh
38 git push origin master
39 ```
40
41 ## Testing the workflow
42
43 To exercise the workflow without firing a real release:
44
45 1. Actions tab -> **Release** -> **Run workflow**.
46 2. Pick a branch and enter the version currently on that branch
47 (the version-consistency check requires the input to match the
48 files in the checked-out tree).
49 3. Approve the `release` environment gate when prompted.
50 4. Goreleaser runs with `--snapshot --skip=publish`. Signing and
51 notarization run; only the GitHub release upload is skipped.
52
53 Use this to validate the workflow YAML, version-extraction logic,
54 the macOS runner setup, and the signing/notarization credentials.