From 9b26a5a294b2ded3064c9662ce397113b6278526 Mon Sep 17 00:00:00 2001 From: Pierre-Olivier Mercier Date: Thu, 29 Feb 2024 10:22:28 +0100 Subject: [PATCH] Update gitlab-ci to include 404 page + refactor --- .gitlab-ci.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7c18e23..78114cd 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -3,17 +3,20 @@ # image: registry.gitlab.com/pages/hugo/hugo:latest +variables: + GIT_SUBMODULE_STRATEGY: recursive + stages: - build -before_script: - - git submodule init - - git submodule update - pages: stage: build script: - hugo + - cp public/en/404.html public/404.html artifacts: paths: - public + rules: + - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH + environment: production