diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..32b0402a8b2947963acdc3f42a9808f84fb69d56 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,24 @@ +# From template at https://gitlab.com/pages/hugo + +default: + image: "${CI_TEMPLATE_REGISTRY_HOST}/pages/hugo/hugo_extended:0.128.1" + +variables: + GIT_SUBMODULE_STRATEGY: recursive # include Hugo themes + HUGO_ENV: production + +test: + script: + - hugo + rules: + - if: $CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH + +pages: + script: + - hugo + artifacts: + paths: + - public + rules: + - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH + environment: production