Skip to content

Commit e13ab14

Browse files
committed
allow release of non-master branches
1 parent a31cca6 commit e13ab14

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

scripts/release/release.sh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
#!/bin/bash
22

33
set -e
4+
set -x
45

5-
# Prepare will prepare the repository for release
6+
# release.sh will:
67
# 1. Modify changelog
78
# 2. Run changelog links script
8-
# 3. Commit changes
9-
# 4. Create a Git tag
9+
# 3. Modify version in meta/meta.go
10+
# 4. Commit and push changes
11+
# 5. Create a Git tag
1012

1113
function pleaseUseGNUsed {
1214
echo "Please install GNU sed to your PATH as 'sed'."
@@ -72,7 +74,7 @@ function commitChanges {
7274
git tag -a -m "v${TARGET_VERSION}" -s "v${TARGET_VERSION}"
7375
fi
7476

75-
git push origin master
77+
git push origin "${CIRCLE_BRANCH}"
7678
git push origin "v${TARGET_VERSION}"
7779
}
7880

0 commit comments

Comments
 (0)