2022-07-22 05:31:40 +04:00
## Checklist
Helix releases are versioned in the Calendar Versioning scheme:
2023-12-05 05:54:18 +04:00
`YY.0M(.MICRO)` , for example, `22.05` for May of 2022, or in a patch release,
`22.05.1` . In these instructions we'll use `<tag>` as a placeholder for the tag
being published.
2022-07-22 05:31:40 +04:00
* Merge the changelog PR
2023-01-25 03:26:42 +04:00
* 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 )
2022-07-22 05:31:40 +04:00
* Tag and push
* `git tag -s -m "<tag>" -a <tag> && git push`
* Make sure to switch to master and pull first
2023-12-05 05:54:18 +04:00
* Edit the `Cargo.toml` file and change the date in the `version` field to the next planned release
* Due to Cargo having a strict requirement on SemVer with 3 or more version
numbers, a `0` is required in the micro version; however, unless we are
publishing a patch release after a major release, the `.0` is dropped in
the user facing version.
* Releases are planned to happen every two months, so `22.05.0` would change to `22.07.0`
* If we are pushing a patch/bugfix release in the same month as the previous
release, bump the micro version, e.g. `22.07.0` to `22.07.1`
2022-07-22 05:31:40 +04:00
* Wait for the Release CI to finish
* It will automatically turn the git tag into a GitHub release when it uploads artifacts
* Edit the new release
* Use `<tag>` as the title
* Link to the changelog and release notes
* Merge the release notes PR
* Download the macos and linux binaries and update the `sha256` s in the [homebrew formula]
* Use `sha256sum` on the downloaded `.tar.xz` files to determine the hash
* Link to the release notes in this-week-in-rust
* [Example PR ](https://github.com/rust-lang/this-week-in-rust/pull/3300 )
* Post to reddit
* [Example post ](https://www.reddit.com/r/rust/comments/uzp5ze/helix_editor_2205_released/ )
2022-08-31 12:45:38 +04:00
[homebrew formula]: https://github.com/Homebrew/homebrew-core/blob/master/Formula/helix.rb
2022-07-22 05:31:40 +04:00
## Changelog Curation
The changelog is currently created manually by reading through commits in the
log since the last release. GitHub's compare view is a nice way to approach
2023-06-08 08:27:58 +04:00
this. For example, when creating the 22.07 release notes, this compare link
2022-07-22 05:31:40 +04:00
may be used
```
https://github.com/helix-editor/helix/compare/22.05...master
```
Either side of the triple-dot may be replaced with an exact revision, so if
you wish to incrementally compile the changelog, you can tackle a weeks worth
or so, record the revision where you stopped, and use that as a starting point
next week:
```
https://github.com/helix-editor/helix/compare/7706a4a0d8b67b943c31d0c5f7b00d357b5d838d...master
```
A work-in-progress commit for a changelog might look like
[this example ](https://github.com/helix-editor/helix/commit/831adfd4c709ca16b248799bfef19698d5175e55 ).
Not every PR or commit needs a blurb in the changelog. Each release section
tends to have a blurb that links to a GitHub comparison between release
versions for convenience:
> As usual, the following is a summary of each of the changes since the last
> release. For the full log, check out the git log.
Typically, small changes like dependencies or documentation updates, refactors,
2023-12-05 05:54:18 +04:00
or meta changes like GitHub Actions work are left out.