Update .gitlab-ci.yml file

This commit is contained in:
Denys Konovalov 2022-05-23 15:38:21 +00:00
parent 72b9a612a8
commit 8c50aea3c8

@ -1,7 +1,13 @@
image: registry.gitlab.com/pages/hugo/hugo_extended:latest image: registry.gitlab.com/pages/hugo/hugo_extended:latest
variables: variables:
GIT_SUBMODULE_STRATEGY: recursive GIT_SUBMODULE_STRATEGY: recursive
deploy_website: test:
script:
- hugo
except:
variables:
- $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
pages:
before_script: before_script:
- apk add --update --no-cache git curl - apk add --update --no-cache git curl
- git config --global user.name "Denys Konovalov" - git config --global user.name "Denys Konovalov"
@ -22,5 +28,6 @@ deploy_website:
artifacts: artifacts:
paths: paths:
- public - public
rules: only:
- if: "$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH" variables:
- $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH