build(release): build the gem on the production
branch (#1577)
This commit is contained in:
parent
19d6bafbe1
commit
9cc62e703f
1 changed files with 6 additions and 1 deletions
|
@ -151,8 +151,10 @@ branch() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
## Build a gem package
|
## Build a Gem package
|
||||||
build_gem() {
|
build_gem() {
|
||||||
|
git checkout "$PROD_BRANCH"
|
||||||
|
|
||||||
# Remove unnecessary theme settings
|
# Remove unnecessary theme settings
|
||||||
sed -i "s/^img_cdn:.*/img_cdn:/;s/^avatar:.*/avatar:/" _config.yml
|
sed -i "s/^img_cdn:.*/img_cdn:/;s/^avatar:.*/avatar:/" _config.yml
|
||||||
rm -f ./*.gem
|
rm -f ./*.gem
|
||||||
|
@ -168,6 +170,9 @@ build_gem() {
|
||||||
|
|
||||||
# restore the dist files for future development
|
# restore the dist files for future development
|
||||||
mkdir -p "$JS_DIST" && cp "$BACKUP_PATH"/* "$JS_DIST"
|
mkdir -p "$JS_DIST" && cp "$BACKUP_PATH"/* "$JS_DIST"
|
||||||
|
|
||||||
|
# back to the default branch
|
||||||
|
git checkout "$DEFAULT_BRANCH"
|
||||||
}
|
}
|
||||||
|
|
||||||
main() {
|
main() {
|
||||||
|
|
Loading…
Reference in a new issue