image: registry.gitlab.com/pages/hugo/hugo_extended:latest variables: HUGO_ENV: production default: before_script: - git submodule update --init test: script: - hugo rules: - if: $CI_COMMIT_REF_NAME != $CI_DEFAULT_BRANCH pages: script: - hugo artifacts: paths: - public rules: - if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH