Skip to content

Commit 5f8f76f

Browse files
committed
Build docs during CI when updated
1 parent d68f722 commit 5f8f76f

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.gitlab-ci.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,28 @@ build:
6868
paths:
6969
- $PACKAGE_BASE_NAME
7070

71+
build_docs:
72+
stage: build
73+
services:
74+
- image:e3
75+
rules:
76+
- if: $CI_PIPELINE_SOURCE == "merge_request_event" || ($CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH)
77+
changes:
78+
- doc/**/*
79+
when: always
80+
script:
81+
- unset GITLAB_TOKEN
82+
- generic_anod_ci
83+
- . /tmp/ci_env.sh
84+
- anod build gnatdas-doc --latest
85+
- mv $ANOD_DEFAULT_SANDBOX_DIR/x86_64-linux/gnatdas-doc/install/share/doc/gnatdas/ $CI_PROJECT_DIR
86+
artifacts:
87+
when:
88+
always
89+
paths:
90+
- gnatdas/pdf/gnatdas.pdf
91+
- gnatdas/html
92+
7193
build_community:
7294
interruptible: true
7395
services:

0 commit comments

Comments
 (0)