Commit c422137c authored by Julien Satti's avatar Julien Satti
Browse files

Update .gitlab-ci.yml file

parent ee1582e4
Loading
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -19,13 +19,17 @@ 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:
      - public/
  rules:
    - if: '$CI_COMMIT_TAG'
    - if: '$CI_COMMIT_REF_NAME == "main"'
    - if: '$CI_COMMIT_REF_NAME == "develop"'
      when: always
    - when: never
 No newline at end of file