You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/book/src/developers/releasing.md
+11-7Lines changed: 11 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,14 +9,18 @@
9
9
10
10
## Create a tag
11
11
12
-
- Identify a known good commit on the main branch
13
-
- Fast-forward the release branch to the selected commit. :warning: Always release from the release branch and not from main!
14
-
-`git checkout release-0.x`
15
-
-`git fetch upstream`
16
-
-`git merge --ff-only upstream/main`
17
-
-`git push`
12
+
- Prepare the release branch. :warning: Always release from the release branch and not from main!
13
+
- If releasing a patch release, check out the existing release branch and make sure you have the latest changes:
14
+
-`git checkout release-1.x`
15
+
-`git fetch upstream`
16
+
-`git rebase upstream/release-1.x`
17
+
- If releasing a minor release, create a new release branch from the main branch:
18
+
-`git fetch upstream`
19
+
-`git rebase upstream/main`
20
+
-`git checkout -b release-1.x`
21
+
-`git push upstream release-1.x`
18
22
- Create tag with git
19
-
-`export RELEASE_TAG=v0.4.6` (the tag of the release to be cut)
23
+
-`export RELEASE_TAG=v1.2.3` (the tag of the release to be cut)
20
24
-`git tag -s ${RELEASE_TAG} -m "${RELEASE_TAG}"`
21
25
-`-s` creates a signed tag, you must have a GPG key [added to your GitHub account](https://docs.github.com/en/enterprise/2.16/user/github/authenticating-to-github/generating-a-new-gpg-key)
0 commit comments