From c85e5112bdba5f344f72a5ae180e0d76cd92336b Mon Sep 17 00:00:00 2001 From: Denys Konovalov Date: Sat, 31 Dec 2022 17:57:27 +0000 Subject: [PATCH] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 26cd1b92..8261c5ac 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,20 +1,14 @@ image: registry.gitlab.com/pages/hugo/hugo_extended:latest + variables: GIT_SUBMODULE_STRATEGY: recursive -test: - script: - - hugo - except: - variables: - - $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH - interruptible: true + pages: script: - - hugo --gc --minify --cleanDestinationDir + - hugo --gc --minify artifacts: paths: - public - only: - variables: - - $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH + rules: + - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH interruptible: true \ No newline at end of file