Merge branch 'hotfix/6.5.2' into production
This commit is contained in:
commit
c41672b2e0
2 changed files with 8 additions and 3 deletions
|
@ -29,9 +29,9 @@
|
|||
%}
|
||||
|
||||
{% if include.absolute %}
|
||||
{% assign url = site.url | append: site.base_url | append: url %}
|
||||
{% assign url = site.url | append: site.baseurl | append: url %}
|
||||
{% else %}
|
||||
{% assign url = site.base_url | append: url %}
|
||||
{% assign url = site.baseurl | append: url %}
|
||||
{% endif %}
|
||||
{% endunless %}
|
||||
{%- endif -%}
|
||||
|
|
|
@ -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
|
||||
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue