diff options
author | Marcel Amirault <mamirault@gitlab.com> | 2022-07-07 12:40:19 +0300 |
---|---|---|
committer | Marcel Amirault <mamirault@gitlab.com> | 2022-07-07 12:40:19 +0300 |
commit | c1a9a50cad3bd69320456ff33b028122a2cdfd26 (patch) | |
tree | d59d36db2277a58dd891239d73aaf592f412d3ca | |
parent | f1ebf0b1db04bb2e1d8aed514b64fd93cbb4d7b9 (diff) | |
parent | 48ca6c33c1c10018ba8f2bbf41e91af508876389 (diff) |
Merge branch 'eread/fix-duplicate-docs-publishing' into 'main'
Fix duplicate docs publishing
See merge request gitlab-org/gitlab-docs!2900
-rw-r--r-- | .gitlab/ci/deploy.gitlab-ci.yml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/.gitlab/ci/deploy.gitlab-ci.yml b/.gitlab/ci/deploy.gitlab-ci.yml index 6f7e66a8..f1b5e889 100644 --- a/.gitlab/ci/deploy.gitlab-ci.yml +++ b/.gitlab/ci/deploy.gitlab-ci.yml @@ -16,7 +16,9 @@ # Calculate sizes before and after minifying/gzipping the static files (HTML, CSS, JS) - SIZE_BEFORE=$(du -sh public/ | awk '{print $1}') # Minify the assets of the resulting site - - ./scripts/minify-assets.sh ./ public/ + - cd public + - ../scripts/minify-assets.sh ./ ./ + - cd .. - SIZE_AFTER_MINIFY=$(du -sh public/ | awk '{print $1}') # Use gzip to compress static content for faster web serving # https://docs.gitlab.com/ee/user/project/pages/introduction.html#serving-compressed-assets |