-
-
Notifications
You must be signed in to change notification settings - Fork 27
/
.gitlab-ci.yml
35 lines (32 loc) · 938 Bytes
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# SPDX-FileCopyrightText: 2024 John Livingston <https://www.john-livingston.fr/>
#
# SPDX-License-Identifier: AGPL-3.0-only
stages:
- build
- deploy
builddoctranslations:
stage: build
image: debian:stable
script:
- apt update && apt install po4a -y
- bash ./doc-translate.sh
artifacts:
paths:
- support/documentation/i18n/
- support/documentation/content/translations/
pages:
stage: deploy
image: registry.gitlab.com/pages/hugo/hugo_extended:0.132.2
variables:
GIT_SUBMODULE_STRATEGY: recursive
GIT_SUBMODULE_PATHS: support/documentation/themes/hugo-theme-relearn
script:
# gitlab need the generated documentation to be in the /public dir.
- hugo -s support/documentation/ --minify -d ../../public/ --baseURL='https://livingston.frama.io/peertube-plugin-livechat/'
dependencies:
- builddoctranslations
artifacts:
paths:
- public
only:
- documentation