From 7c26848da674859cf374aee90a928e5f87c5f210 Mon Sep 17 00:00:00 2001
From: Jorge Moratinos <jorge.moratinossalcines@telefonica.com>
Date: Fri, 15 Mar 2024 13:45:09 +0000
Subject: [PATCH] Update .gitlab-ci.yml file

---
 .gitlab-ci.yml | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 9dacc71..0cfd80f 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -19,7 +19,10 @@ pages:
         mike set-default --deploy-prefix public -r $HTTPS_REMOTE -p -b $PAGES_BRANCH latest
       elif [ "$CI_COMMIT_REF_NAME" == "develop" ]; then
         mike deploy --deploy-prefix public -r $HTTPS_REMOTE -p -b $PAGES_BRANCH -u $CI_COMMIT_BRANCH
+      elif [ -n "$CI_CLEAN"]; then
+        rm -rf public/$CI_CLEAN
       fi
+
     - git checkout $PAGES_BRANCH -- public/
   artifacts:
     paths:
-- 
GitLab