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