summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJordan Petridis <jordanpetridis@protonmail.com>2018-04-30 17:12:20 +0300
committerJordan Petridis <jordanpetridis@protonmail.com>2018-05-06 19:56:15 +0300
commitf4a0109377df806eb47c7baa058e4732da5db884 (patch)
treeeb7b07c473f001e94bb74040ca87f8545911a6b3
parent7f8a8f221d60bc5da23602e5e024eb91f8b0f758 (diff)
downloadgtk+-f4a0109377df806eb47c7baa058e4732da5db884.tar.gz
gitlabci: Build and publish docs with gitlab pages.
-rw-r--r--.gitlab-ci.yml19
1 files changed, 19 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index bdc6a4065c..db6eaf101e 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,6 +1,7 @@
stages:
- build
- flatpak
+ - deploy
.cache-paths: &cache-paths
paths:
@@ -61,3 +62,21 @@ flatpak:widget-factory:
variables:
APPID: org.gtk.WidgetFactory
<<: *flatpak-defaults
+
+pages:
+ image: registry.gitlab.gnome.org/gnome/gtk/master:v1
+ stage: deploy
+ script:
+ - meson -Ddocumentation=true _build .
+ - ninja -C _build
+ - ninja -C _build gdk4-doc gsk4-doc gtk4-doc
+
+ - mkdir -p public/
+ - mv _build/docs/reference/gtk/html/ public/gtk/
+ - mv _build/docs/reference/gdk/html/ public/gdk/
+ - mv _build/docs/reference/gsk/html/ public/gsk/
+ artifacts:
+ paths:
+ - public
+ only:
+ - master