Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Read <eread@gitlab.com>2022-07-07 09:02:10 +0300
committerEvan Read <eread@gitlab.com>2022-07-07 09:02:10 +0300
commit48ca6c33c1c10018ba8f2bbf41e91af508876389 (patch)
tree4edfb83c1469946f7d6b786bdc73ffbe489faab6
parentd3ce55082b3df44d81eb577d89b5a66a9573d707 (diff)
Fix duplicate docs publishing
-rw-r--r--.gitlab/ci/deploy.gitlab-ci.yml4
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