From f4a0109377df806eb47c7baa058e4732da5db884 Mon Sep 17 00:00:00 2001 From: Jordan Petridis Date: Mon, 30 Apr 2018 17:12:20 +0300 Subject: [PATCH] gitlabci: Build and publish docs with gitlab pages. --- .gitlab-ci.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) 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