Debian Codegraph @

bumpversion.sh

raw symbols SCIP
1 #!/usr/bin/env bash
2
3 set -xe
4
5 current_branch=`git rev-parse --abbrev-ref HEAD`
6 release_branch="main"
7
8
9 if [ "${current_branch}" != "${release_branch}" ]; then
10 echo can only bump version on $release_branch
11 exit 1
12 fi
13
14 which convco
15 which cargo-set-version
16
17 NEXT_VERSION=`convco version --bump HEAD`
18
19 cargo set-version $NEXT_VERSION
20 git add Cargo.toml
21 git commit -m "chore: bump version"
22 git tag v$NEXT_VERSION
23
24 convco changelog > CHANGELOG.md
25 git add CHANGELOG.md
26 git commit -m "chore: changelog"