We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eb20e66 commit 2fb9835Copy full SHA for 2fb9835
scripts/create-release.sh
@@ -0,0 +1,25 @@
1
+#!/usr/bin/env bash
2
+
3
+set -eu -o pipefail
4
5
+SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
6
+cd $SCRIPT_DIR/..
7
8
+version=${1:-}
9
+if [[ -z "$version" ]]; then
10
+ echo "USAGE: $0 version" 2>/dev/null
11
+ exit 1
12
+fi
13
14
+if [[ "$(git symbolic-ref --short HEAD)" != "master" ]]; then
15
+ echo "must be on master branch" 2>/dev/null
16
17
18
19
+sed -i -e "s!version = \".*\"!version = \"${version}\"!" Cargo.toml
20
+cargo build
21
+git add Cargo.toml Cargo.lock
22
+git commit -m "bump version ${version}"
23
+git tag -e "${version}"
24
25
+echo 'now run `git push --tags origin master`'
0 commit comments