This repository has been archived by the owner on Jan 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 138
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump version to 2.6.2-SNAPSHOT (#224)
* Fix the release process * Bumped version to 2.6.2-SNAPSHOT * Fix docs
- Loading branch information
1 parent
803f232
commit f81f7e4
Showing
4 changed files
with
27 additions
and
26 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 |
---|---|---|
|
@@ -18,16 +18,17 @@ There has two type of the tags, one is stable `vX.Y.Z(.M)`, and another is unsta | |
|
||
1. Prepare for a release | ||
2. Create the release branch | ||
3. Update the project version and tag | ||
3. Update the project version and pulsar version | ||
4. Build the artifacts | ||
5. Verify the artifacts | ||
6. Release the artifacts using streamnative-ci | ||
7. Write release notes | ||
8. Overwrite the branch | ||
9. Move master branch to the next version | ||
8. Move master branch to the next version | ||
|
||
## Steps in detail | ||
|
||
> In this section, `X.Y.Z.M` represents a specific version, e.g. `2.6.2.0`. | ||
1. Prepare for a release | ||
|
||
Create a new milestone and move the pull requests that can not be published in this release to the new milestone. | ||
|
@@ -37,18 +38,16 @@ There has two type of the tags, one is stable `vX.Y.Z(.M)`, and another is unsta | |
```bash | ||
$ git clone [email protected]:streamnative/kop.git | ||
$ cd kop | ||
$ git checkout -b branch-X.Y.Z | ||
$ git checkout -b bump-pulsar-version | ||
``` | ||
|
||
3. Update the project version and tag | ||
3. Update the project version and pulsar version | ||
|
||
```bash | ||
$ ./scripts/set-project-version.sh X.Y.Z.M | ||
$ ./scripts/set-pulsar-version.sh X.Y.Z.M | ||
$ git commit -m "Release X.Y.Z.M" -a | ||
$ git push origin branch-X.Y.Z | ||
$ git tag vX.Y.Z.M | ||
$ git push origin vX.Y.Z.M | ||
$ git push origin bump-pulsar-version | ||
``` | ||
|
||
4. Build the artifacts | ||
|
@@ -78,11 +77,24 @@ There has two type of the tags, one is stable `vX.Y.Z(.M)`, and another is unsta | |
|
||
After the PR being merged to `master`, you can use streamnative-ci to release the artifacts. | ||
|
||
The streamnative-ci needs the specified tag, so we need to push a tag `vX.Y.Z.M` first, as well as the branch: | ||
|
||
```bash | ||
$ git clone [email protected]:streamnative/kop.git | ||
$ cd kop | ||
$ git checkout -b branch-X.Y.Z | ||
$ git push origin branch-X.Y.Z | ||
$ git tag vX.Y.Z.M | ||
$ git push origin vX.Y.Z.M | ||
``` | ||
|
||
Then use streamnative-ci to release the latest KoP: | ||
|
||
```bash | ||
$ git clone https://github.com/streamnative/streamnative-ci.git | ||
$ git clone git@github.com:streamnative/streamnative-ci.git | ||
$ cd streamnative-ci | ||
$ git checkout release | ||
$ git commit --allow-empty -m "/snbot release kop X.Y.Z.M" | ||
$ git commit --allow-empty -m "/snbot release kop vX.Y.Z.M" | ||
$ git push origin release | ||
# Then, you can see the release process: https://github.com/streamnative/streamnative-ci/actions | ||
``` | ||
|
@@ -96,23 +108,12 @@ There has two type of the tags, one is stable `vX.Y.Z(.M)`, and another is unsta | |
- Feature | ||
- Bug fixed | ||
|
||
8. Overwrite the branch | ||
|
||
Because the PR may contain multiple commits that will be squashed to a single commit, we need to overwrite the branch after the release. | ||
|
||
```bash | ||
$ git clone [email protected]:streamnative/kop.git | ||
$ cd kop | ||
$ git checkout -b branch-X.Y.Z | ||
$ git push origin branch-X.Y.Z -f | ||
``` | ||
|
||
9. Move master branch to the next version | ||
8. Move master branch to the next version | ||
|
||
```bash | ||
$ git checkout -b bump-master | ||
$ ./scripts/set-project-version.sh X.Y.Z-SNAPSHOT | ||
$ git commit -m 'Bumped version to X.Y.Z-SNAPSHOT' -a | ||
$ git commit -m 'Bump version to X.Y.Z-SNAPSHOT' -a | ||
$ git push origin bump-master | ||
# create a PR for this change | ||
``` |
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
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
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