chore: update version bump procedure
This commit is contained in:
parent
36264ed4a5
commit
97f4472ed1
5
Makefile
5
Makefile
|
@ -19,11 +19,8 @@ shell-check:
|
||||||
VERSION:
|
VERSION:
|
||||||
tools/version.sh
|
tools/version.sh
|
||||||
|
|
||||||
bump-python-version: VERSION
|
|
||||||
tools/bump-python-version.sh
|
|
||||||
|
|
||||||
.PHONY: tarball
|
.PHONY: tarball
|
||||||
tarball: VERSION bump-python-version
|
tarball: VERSION
|
||||||
$(MAKE) -C legacy build
|
$(MAKE) -C legacy build
|
||||||
cd .. && tar -czf libretime-$(shell cat VERSION | tr -d [:blank:]).tar.gz \
|
cd .. && tar -czf libretime-$(shell cat VERSION | tr -d [:blank:]).tar.gz \
|
||||||
--owner=root --group=root \
|
--owner=root --group=root \
|
||||||
|
|
|
@ -58,7 +58,8 @@ Create a new `release-$VERSION` branch and release commit to prepare a release p
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
git checkout -b "release-$VERSION"
|
git checkout -b "release-$VERSION"
|
||||||
git commit --allow-empty "chore: release $VERSION"
|
export COMMIT_MESSAGE="chore: release $VERSION"
|
||||||
|
git commit --allow-empty "$COMMIT_MESSAGE"
|
||||||
```
|
```
|
||||||
|
|
||||||
### 1. Version bump
|
### 1. Version bump
|
||||||
|
@ -66,11 +67,10 @@ git commit --allow-empty "chore: release $VERSION"
|
||||||
Write the new `$VERSION` to the VERSION file, and bump the python packages version:
|
Write the new `$VERSION` to the VERSION file, and bump the python packages version:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
echo $VERSION > VERSION
|
bash tools/bump-python-version.sh "$VERSION"
|
||||||
bash tools/bump-python-version.sh
|
|
||||||
|
|
||||||
git add .
|
git add .
|
||||||
git commit --fixup ":/chore: release $VERSION"
|
git commit --fixup ":/$COMMIT_MESSAGE"
|
||||||
```
|
```
|
||||||
|
|
||||||
### 2. Release note
|
### 2. Release note
|
||||||
|
@ -99,7 +99,7 @@ Commit the release note changes:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
git add .
|
git add .
|
||||||
git commit --fixup ':/chore: release'
|
git commit --fixup ":/$COMMIT_MESSAGE"
|
||||||
```
|
```
|
||||||
|
|
||||||
### 3. Website and docs
|
### 3. Website and docs
|
||||||
|
@ -122,7 +122,7 @@ Commit the website and docs changes:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
git add .
|
git add .
|
||||||
git commit --fixup ':/chore: release'
|
git commit --fixup ":/$COMMIT_MESSAGE"
|
||||||
```
|
```
|
||||||
|
|
||||||
### 4. Create a new pull request
|
### 4. Create a new pull request
|
||||||
|
|
|
@ -11,7 +11,7 @@ error() {
|
||||||
|
|
||||||
command -v sed > /dev/null || error "sed command not found!"
|
command -v sed > /dev/null || error "sed command not found!"
|
||||||
|
|
||||||
version="$(cat VERSION)"
|
version="$1"
|
||||||
|
|
||||||
for setup_path in */setup.py; do
|
for setup_path in */setup.py; do
|
||||||
sed --in-place \
|
sed --in-place \
|
||||||
|
|
Loading…
Reference in New Issue