Skip to content

Commit 9cc62e7

Browse files
authored
build(release): build the gem on the production branch (#1577)
1 parent 19d6baf commit 9cc62e7

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tools/release

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,10 @@ branch() {
151151
fi
152152
}
153153

154-
## Build a gem package
154+
## Build a Gem package
155155
build_gem() {
156+
git checkout "$PROD_BRANCH"
157+
156158
# Remove unnecessary theme settings
157159
sed -i "s/^img_cdn:.*/img_cdn:/;s/^avatar:.*/avatar:/" _config.yml
158160
rm -f ./*.gem
@@ -168,6 +170,9 @@ build_gem() {
168170

169171
# restore the dist files for future development
170172
mkdir -p "$JS_DIST" && cp "$BACKUP_PATH"/* "$JS_DIST"
173+
174+
# back to the default branch
175+
git checkout "$DEFAULT_BRANCH"
171176
}
172177

173178
main() {

0 commit comments

Comments
 (0)