diff options
author | Evan Read <eread@gitlab.com> | 2022-07-07 09:02:10 +0300 |
---|---|---|
committer | Evan Read <eread@gitlab.com> | 2022-07-07 09:02:10 +0300 |
commit | 48ca6c33c1c10018ba8f2bbf41e91af508876389 (patch) | |
tree | 4edfb83c1469946f7d6b786bdc73ffbe489faab6 | |
parent | d3ce55082b3df44d81eb577d89b5a66a9573d707 (diff) |
Fix duplicate docs publishing
-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 |