File: bumpversion.sh

package info (click to toggle)
rust-notify-rust 4.11.6-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 604 kB
  • sloc: sh: 18; makefile: 4
file content (26 lines) | stat: -rwxr-xr-x 494 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/usr/bin/env bash

set -xe

current_branch=`git rev-parse --abbrev-ref HEAD`
release_branch="main"


if [ "${current_branch}" != "${release_branch}" ]; then
echo can only bump version on $release_branch
exit 1
fi

which convco
which cargo-set-version

NEXT_VERSION=`convco version --bump HEAD`

cargo set-version $NEXT_VERSION
git add Cargo.toml
git commit -m "chore: bump version"
git tag v$NEXT_VERSION

convco changelog > CHANGELOG.md
git add CHANGELOG.md
git commit -m "chore: changelog"