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: doc/BUILD.md
+43-9Lines changed: 43 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,16 +3,38 @@
3
3
Build process is now covered in series of independent github actions. Here is
4
4
brief but comprehensive guide to create new build using these actions.
5
5
6
+
## Version format
7
+
8
+
Version consists of four parts separated by dots:
9
+
10
+
```
11
+
{MAJOR}.{MINOR}.{PATCH}.{REVISION}rc{RCVERSION}
12
+
```
13
+
14
+
Example: `2.14.0.1rc1`
15
+
6
16
## 1. Pull request for release candidate
7
17
18
+
**TL;DR**: Just run the `dispatch_1_rc_pullrequest` action with no parameters.
19
+
Only provide the version parameter if you need to bump the MAJOR or MINOR version.
20
+
8
21
First step is creating pull request for new version. In this pull request
9
22
Pipefile.lock is frozen (and released again in next commit) and VERSION number
10
23
is increased.
11
24
12
25
Pull request can and should be created with `dispatch_1_rc_pullrequest` github
13
-
action. It has one parameter that should be kept empty usually. Only in case
14
-
that the version should be increased (should be aligned with 3scale) the
15
-
version should be defined in X.Y.Z form, e.g. 2.14.0, 2.13.1 etc.
26
+
action. It accepts an optional version parameter.
27
+
28
+
### Version parameter behavior
29
+
30
+
**Custom version provided** (dot-separated numbers, e.g. `2.14` or `2.14.0`):
31
+
- If exactly two numbers are given (e.g. `2.14`), PATCH is automatically set to `0`, resulting in `2.14.0`.
32
+
- There is no limit on the number of parts otherwise.
33
+
- The action searches existing git tags to find the next available REVISION for that version, and sets RCVERSION to the lowest unused value (numbering starts at `1`).
34
+
35
+
**No version provided**:
36
+
- Version is read from the `VERSION` file (first three fields: MAJOR.MINOR.PATCH).
37
+
- REVISION is determined as the highest existing value found in git tags.
16
38
17
39
RC pull request is created by this action. PR should go through standard
18
40
review process, it always contains 2 commits, first with version increase and
@@ -24,12 +46,22 @@ After the review the PR should be merged.
24
46
25
47
## 2. Create pre-release
26
48
27
-
This is done automatically for first release 'rc1'. For next rc builds (rc2,
28
-
rc3, ...) automation does not work and the release must be created manually
29
-
(meaning standard github release)
49
+
This is done automatically for the first release candidate (`rc1`). For
50
+
subsequent rc builds (`rc2`, `rc3`, ...) automation does not work and the
0 commit comments