| 1 | ## Checklist |
| 2 | |
| 3 | Helix releases are versioned in the Calendar Versioning scheme: |
| 4 | `YY.0M(.MICRO)`, for example, `22.05` for May of 2022, or in a patch release, |
| 5 | `22.05.1`. In these instructions we'll use `<tag>` as a placeholder for the tag |
| 6 | being published. |
| 7 | |
| 8 | * Merge the PR with the release updates. That branch should: |
| 9 | * Update the version: |
| 10 | * Update the `workspace.package.version` key in `Cargo.toml`. Cargo only accepts |
| 11 | SemVer versions so a CalVer version of `22.07` for example must be formatted |
| 12 | as `22.7.0`. Patch/bugfix releases should increment the SemVer patch number. A |
| 13 | patch release for 22.07 would be `22.7.1`. |
| 14 | * Run `cargo check` and commit the resulting change to `Cargo.lock` |
| 15 | * Add changelog notes to `CHANGELOG.md` |
| 16 | * Add new `<release>` entry in `contrib/Helix.appdata.xml` with release information according to the [AppStream spec](https://www.freedesktop.org/software/appstream/docs/sect-Metadata-Releases.html) |
| 17 | * Tag and push |
| 18 | * Switch to master and pull |
| 19 | * `git tag -s -m "<tag>" -a <tag> && git push origin <tag>` (note the `-s` which signs the tag) |
| 20 | * Wait for the Release CI to finish |
| 21 | * It will automatically turn the git tag into a GitHub release when it uploads artifacts |
| 22 | * Edit the new release |
| 23 | * Use `<tag>` as the title |
| 24 | * Link to the changelog and release notes |
| 25 | * Merge the release notes PR |
| 26 | * Download the macos and linux binaries and update the `sha256`s in the [homebrew formula] |
| 27 | * Use `sha256sum` on the downloaded `.tar.xz` files to determine the hash |
| 28 | * Link to the release notes in this-week-in-rust |
| 29 | * [Example PR](https://github.com/rust-lang/this-week-in-rust/pull/3300) |
| 30 | * Post to reddit |
| 31 | * [Example post](https://www.reddit.com/r/rust/comments/uzp5ze/helix_editor_2205_released/) |
| 32 | |
| 33 | [homebrew formula]: https://github.com/Homebrew/homebrew-core/blob/master/Formula/h/helix.rb |
| 34 | |
| 35 | ## Changelog Curation |
| 36 | |
| 37 | The changelog is currently created manually by reading through commits in the |
| 38 | log since the last release. GitHub's compare view is a nice way to approach |
| 39 | this. For example, when creating the 22.07 release notes, this compare link |
| 40 | may be used |
| 41 | |
| 42 | ``` |
| 43 | https://github.com/helix-editor/helix/compare/22.05...master |
| 44 | ``` |
| 45 | |
| 46 | Either side of the triple-dot may be replaced with an exact revision, so if |
| 47 | you wish to incrementally compile the changelog, you can tackle a weeks worth |
| 48 | or so, record the revision where you stopped, and use that as a starting point |
| 49 | next week: |
| 50 | |
| 51 | ``` |
| 52 | https://github.com/helix-editor/helix/compare/7706a4a0d8b67b943c31d0c5f7b00d357b5d838d...master |
| 53 | ``` |
| 54 | |
| 55 | A work-in-progress commit for a changelog might look like |
| 56 | [this example](https://github.com/helix-editor/helix/commit/831adfd4c709ca16b248799bfef19698d5175e55). |
| 57 | |
| 58 | Not every PR or commit needs a blurb in the changelog. Each release section |
| 59 | tends to have a blurb that links to a GitHub comparison between release |
| 60 | versions for convenience: |
| 61 | |
| 62 | > As usual, the following is a summary of each of the changes since the last |
| 63 | > release. For the full log, check out the git log. |
| 64 | |
| 65 | Typically, small changes like dependencies or documentation updates, refactors, |
| 66 | or meta changes like GitHub Actions work are left out. |