-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
- Loading branch information
1 parent
5b4eb97
commit 8a08cc2
Showing
1 changed file
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# How to release | ||
|
||
# Minor | ||
|
||
|
||
# Patch | ||
|
||
1. Ensure all needed PRs were backported to the current release branch, and all backport PRs were merged. | ||
|
||
2. Export the release you want to make: | ||
|
||
```sh | ||
export REL_VER=v0.1.1 | ||
export CUR_VER="$(echo $REL_VER | awk -F. -v OFS=. '{$NF -= 1 ; print}')" | ||
|
||
echo "Releasing $CUR_VER -> $REL_VER" | ||
``` | ||
3. Checkout the current release branch: | ||
|
||
```sh | ||
git switch "release/${REL_VER%.*}" | ||
``` | ||
|
||
4. Create a new temporary branch for the relese: | ||
|
||
```sh | ||
git switch -c "tmp/$REL_VER" | ||
git push | ||
``` | ||
|
||
5. Trigger the release workflow | ||
|
||
```sh | ||
gh workflow run release.yml --ref $(git rev-parse --abbrev-ref HEAD) -f kind=patch -f version="$REL_VER" | ||
``` | ||
6. Review the release notes, test the binary artifact. | ||
|
||
7. Publish the GitHub release. |