2021-03-01 19:41:45 +00:00
|
|
|
# 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
|
|
|
|
-->
|
|
|
|
|
2024-06-07 20:57:00 +00:00
|
|
|
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
|
2024-06-07 20:57:00 +00:00
|
|
|
proclamation build 24.0.0
|
2021-01-28 16:02:28 +00:00
|
|
|
```
|
|
|
|
|
2024-06-07 20:57:00 +00:00
|
|
|
Commit changes.
|
2021-01-28 16:02:28 +00:00
|
|
|
|
|
|
|
```sh
|
2024-06-07 20:57:00 +00:00
|
|
|
git commit -m "doc: Update CHANGELOG" doc/CHANGELOG.md doc/changes
|
2021-01-28 16:02:28 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
## Update versions
|
|
|
|
|
2024-06-07 20:57:00 +00:00
|
|
|
Edit the files below to update the version number embedded in them.
|
2021-01-28 16:02:28 +00:00
|
|
|
|
2024-06-07 20:57:00 +00:00
|
|
|
* `CMakeLists.txt`
|
|
|
|
* `vcpkg.json`
|
2021-01-28 16:02:28 +00:00
|
|
|
|
|
|
|
See previous commits for exact places.
|
|
|
|
|
|
|
|
```sh
|
2024-06-07 20:57:00 +00:00
|
|
|
git commit -m "monado: Update version" CMakeLists.txt vcpkg.json
|
2021-01-28 16:02:28 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
## Tag the code
|
|
|
|
|
2024-06-07 20:57:00 +00:00
|
|
|
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
|
2024-06-07 20:57:00 +00:00
|
|
|
git tag v24.0.0 -m "v24.0.0" -a -s
|
2021-01-28 16:02:28 +00:00
|
|
|
```
|
|
|
|
|
2024-06-07 20:57:00 +00:00
|
|
|
## Do GitLab release
|
2021-01-28 16:02:28 +00:00
|
|
|
|
2024-06-07 20:57:00 +00:00
|
|
|
The GitLab UI has a friendly interface, follow the guide there.
|