From 8c50aea3c8a87d2624939243f60821687517670a 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 7790e150..a856d2e9 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