monado/doc/how-to-release.md

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

50 lines
976 B
Markdown
Raw Normal View History

# How to make a release {#how-to-release}
2021-01-28 16:02:28 +00:00
2021-02-11 15:43:08 +00:00
<!--
Copyright 2021, Collabora, Ltd. and the Monado contributors
SPDX-License-Identifier: BSL-1.0
-->
These instructions assumes that the version you are making is `24.0.0`.
2021-01-28 16:02:28 +00:00
## Generate changelog
Run proclamation in the `doc/changes`.
```sh
proclamation build 24.0.0
2021-01-28 16:02:28 +00:00
```
Commit changes.
2021-01-28 16:02:28 +00:00
```sh
git commit -m "doc: Update CHANGELOG" doc/CHANGELOG.md doc/changes
2021-01-28 16:02:28 +00:00
```
## Update versions
Edit the files below to update the version number embedded in them.
2021-01-28 16:02:28 +00:00
* `CMakeLists.txt`
* `vcpkg.json`
2021-01-28 16:02:28 +00:00
See previous commits for exact places.
```sh
git commit -m "monado: Update version" CMakeLists.txt vcpkg.json
2021-01-28 16:02:28 +00:00
```
## Tag the code
Do the tagging from git, do **not** do it from GitLab.
Also, make sure to prefix the version with `v` so that e.g. `24.0.0` becomes `v24.0.0`.
The `-s` flag signs the tag.
2021-01-28 16:02:28 +00:00
```sh
git tag v24.0.0 -m "v24.0.0" -a -s
2021-01-28 16:02:28 +00:00
```
## Do GitLab release
2021-01-28 16:02:28 +00:00
The GitLab UI has a friendly interface, follow the guide there.