2024-01-23 11:50:11 +00:00
|
|
|
#
|
|
|
|
# All available Hugo versions are listed under https://gitlab.com/pages/hugo/container_registry.
|
|
|
|
#
|
|
|
|
image: registry.gitlab.com/pages/hugo/hugo:latest
|
|
|
|
|
2024-02-29 09:22:28 +00:00
|
|
|
variables:
|
|
|
|
GIT_SUBMODULE_STRATEGY: recursive
|
|
|
|
|
2024-01-23 11:50:11 +00:00
|
|
|
stages:
|
|
|
|
- build
|
|
|
|
|
|
|
|
pages:
|
|
|
|
stage: build
|
|
|
|
script:
|
|
|
|
- hugo
|
2024-02-29 09:22:28 +00:00
|
|
|
- cp public/en/404.html public/404.html
|
2024-01-23 11:50:11 +00:00
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- public
|
2024-02-29 09:22:28 +00:00
|
|
|
rules:
|
|
|
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
|
|
|
environment: production
|