From 50193152528314831174c38b4d0e1f6bf07afcd4 Mon Sep 17 00:00:00 2001 From: Denys Konovalov Date: Mon, 23 May 2022 15:38:21 +0000 Subject: [PATCH] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7790e15..a856d2e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,7 +1,13 @@ image: registry.gitlab.com/pages/hugo/hugo_extended:latest variables: GIT_SUBMODULE_STRATEGY: recursive -deploy_website: +test: + script: + - hugo + except: + variables: + - $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH +pages: before_script: - apk add --update --no-cache git curl - git config --global user.name "Denys Konovalov" @@ -22,5 +28,6 @@ deploy_website: artifacts: paths: - public - rules: - - if: "$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH" \ No newline at end of file + only: + variables: + - $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH \ No newline at end of file