Skip to content

Commit

Permalink
build(release): build the gem on the production branch (mmistakes#1577
Browse files Browse the repository at this point in the history
)
  • Loading branch information
cotes2020 authored Feb 29, 2024
1 parent 19d6baf commit 9cc62e7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tools/release
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,10 @@ branch() {
fi
}

## Build a gem package
## Build a Gem package
build_gem() {
git checkout "$PROD_BRANCH"

# Remove unnecessary theme settings
sed -i "s/^img_cdn:.*/img_cdn:/;s/^avatar:.*/avatar:/" _config.yml
rm -f ./*.gem
Expand All @@ -168,6 +170,9 @@ build_gem() {

# restore the dist files for future development
mkdir -p "$JS_DIST" && cp "$BACKUP_PATH"/* "$JS_DIST"

# back to the default branch
git checkout "$DEFAULT_BRANCH"
}

main() {
Expand Down

0 comments on commit 9cc62e7

Please sign in to comment.