Skip to content

Commit 49cd08f

Browse files
committed
doc: minor release process
Signed-off-by: Dejan Bosanac <dbosanac@redhat.com>
1 parent 108506e commit 49cd08f

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

RELEASE.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,3 +168,46 @@ by:
168168
```cargo
169169
trustify-ui = { git = "https://github.com/guacsec/trustify-ui.git", branch = "release/x.y.z" }
170170
```
171+
172+
## Releasing the minor version
173+
174+
When releasing the minor version, there's a subset of steps that needs to be done.
175+
Here's the example releasing version `0.4.4` from `release/0.4.z` branch with all the commits for the release cherry-picked into it:
176+
177+
* Make sure you are starting with an updated release branch
178+
179+
```shell
180+
git checkout -b upstream/release/0.4.z
181+
git pull -r
182+
git checkout -b 0.4.4-prepare
183+
```
184+
185+
* Prepare a release
186+
187+
```shell
188+
cargo release version 0.4.4
189+
cargo release version 0.4.4 -x
190+
cargo update
191+
cargo xtask precommit
192+
```
193+
194+
* Push a commit and create a PR **against release branch** (`release/0.4.z` in this case)
195+
196+
```shell
197+
git commit -S -a -m "chore: prepare release 0.4.4"
198+
git push upstream 0.4.4-prepare
199+
```
200+
201+
* Merge PR
202+
203+
* Create (signed) tag.
204+
205+
```shell
206+
git tag -S v0.4.4
207+
```
208+
209+
* Push tag, which triggers GitHub release workflow.
210+
211+
```shell
212+
git push upstream v0.4.4
213+
```

0 commit comments

Comments
 (0)