help/.gitlab-ci.yml
Pierre-Olivier Mercier 9b26a5a294
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Update gitlab-ci to include 404 page + refactor
2024-02-29 10:22:28 +01:00

23 lines
432 B
YAML

#
# All available Hugo versions are listed under https://gitlab.com/pages/hugo/container_registry.
#
image: registry.gitlab.com/pages/hugo/hugo:latest
variables:
GIT_SUBMODULE_STRATEGY: recursive
stages:
- build
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