chore(build): tag on production
branch instead of master
(#1052)
This commit is contained in:
parent
a51d31c55a
commit
98850e1e5d
1 changed files with 4 additions and 5 deletions
|
@ -164,15 +164,14 @@ build_gem() {
|
||||||
release() {
|
release() {
|
||||||
_version="$1" # X.Y.Z
|
_version="$1" # X.Y.Z
|
||||||
|
|
||||||
|
git checkout "$PROD_BRANCH"
|
||||||
|
git merge --no-ff --no-edit "$working_branch"
|
||||||
|
|
||||||
# Create a new tag on working branch
|
# Create a new tag on working branch
|
||||||
echo -e "Create tag v$_version\n"
|
echo -e "Create tag v$_version\n"
|
||||||
git tag "v$_version"
|
git tag "v$_version"
|
||||||
|
|
||||||
git checkout "$PROD_BRANCH"
|
# Merge from patch branch to the staging branch
|
||||||
git merge --no-ff --no-edit "$working_branch"
|
|
||||||
|
|
||||||
# merge from patch branch to the staging branch
|
|
||||||
# NOTE: This may break due to merge conflicts, so it may need to be resolved manually.
|
|
||||||
if [[ $working_branch == hotfix/* ]]; then
|
if [[ $working_branch == hotfix/* ]]; then
|
||||||
git checkout "$STAGING_BRANCH"
|
git checkout "$STAGING_BRANCH"
|
||||||
git merge --no-ff --no-edit "$working_branch"
|
git merge --no-ff --no-edit "$working_branch"
|
||||||
|
|
Loading…
Reference in a new issue