File: bump

package info (click to toggle)
addchain 0.4.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,396 kB
  • sloc: sh: 428; makefile: 8
file content (27 lines) | stat: -rwxr-xr-x 462 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
27
#!/usr/bin/env bash

set -exuo pipefail

# Parse options.
version="$1"

# Check repo is not dirty.
git diff
test -z "$(git status --porcelain)"

# Start new branch.
branch="release-${version}"
git checkout -b "${branch}"

# Bump version.
go run ./internal/tools/release bump "${version}"

# Reserve DOI.
go run ./internal/tools/release reservedoi

# Rerun code generation.
./script/generate

# Create a commit.
git add -u
git commit -m "all: release ${version}"