[gnome-shell/zbrown/docgen] ci: Build docs in CI
- From: Zander Brown <zbrown src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/zbrown/docgen] ci: Build docs in CI
- Date: Tue, 8 Jun 2021 19:23:36 +0000 (UTC)
commit b06739a40ac2b40813cde9b3a5920941fba87d79
Author: Zander Brown <zbrown gnome org>
Date: Mon Jun 7 01:10:28 2021 +0100
ci: Build docs in CI
.gitlab-ci.yml | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 78f380aa41..f6c25102b0 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -9,6 +9,7 @@ stages:
- review
- build
- test
+ - docs
- deploy
default:
@@ -58,6 +59,9 @@ workflow:
dnf install -y nodejs &&
npm install -g eslint &&
+ # For docs
+ dnf install -y python3-markdown python3-toml python3-typogrify &&
+
dnf group install -y 'Development Tools' \
'C Development Tools and Libraries' &&
dnf install -y meson &&
@@ -227,3 +231,31 @@ nightly:
extends: '.publish_nightly'
variables:
BUNDLES: '$BUNDLE'
+
+reference:
+ stage: docs
+ needs: []
+ before_script:
+ - .gitlab-ci/checkout-mutter.sh
+ - meson mutter mutter/build --prefix=/usr -Dtests=false
+ - ninja -C mutter/build install
+ script:
+ - meson -Dman=false -Dgtk_doc=true build
+ - ninja -C build
+ - mkdir -p reference/
+ - mv build/docs/St/ reference/
+ - mv build/docs/Shell/ reference/
+ artifacts:
+ paths:
+ - reference
+
+pages:
+ stage: deploy
+ needs: ['reference']
+ script:
+ - mv reference/ public/
+ artifacts:
+ paths:
+ - public
+ only:
+ - master
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]