summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2020-02-25 16:42:07 +0000
committerEmmanuele Bassi <ebassi@gnome.org>2020-02-25 17:09:24 +0000
commit97b5775c1f0b9af9edd8d46b7dd565d74e9451b6 (patch)
treecc6281d48dcf2b52b096dec39b8c9cb8a5456550 /.gitlab-ci.yml
parent64ff12dbd7a95e23aa30ae2fb998b328bbcafee3 (diff)
downloadgtk+-97b5775c1f0b9af9edd8d46b7dd565d74e9451b6.tar.gz
ci: Add a separate "docs" stage
Don't build the API reference on deploy; build it in a separate job, instead, so we can run it on all pipelines, and deploy it only for master.
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml23
1 files changed, 16 insertions, 7 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 5d8aea5315..1e066f15c3 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,8 +1,9 @@
stages:
- style-check
- build
- - deploy
+ - docs
- flatpak
+ - deploy
.cache-paths: &cache-paths
paths:
@@ -166,18 +167,26 @@ flatpak-master:icon-browser:
APPID: org.gtk.IconBrowser4
<<: *flatpak-master
-pages:
+reference:
image: registry.gitlab.gnome.org/gnome/gtk/fedora:v13
- stage: deploy
+ stage: docs
variables:
EXTRA_MESON_FLAGS: "--buildtype=release"
script:
- meson ${COMMON_MESON_FLAGS} -Dgtk_doc=true _build
- ninja -C _build gdk4-doc gsk4-doc gtk4-doc
- - mkdir -p public/
- - mv _build/docs/reference/gdk/html/ public/gdk/
- - mv _build/docs/reference/gsk/html/ public/gsk/
- - mv _build/docs/reference/gtk/html/ public/gtk/
+ - mkdir -p _reference/
+ - mv _build/docs/reference/gdk/html/ _reference/gdk/
+ - mv _build/docs/reference/gsk/html/ _reference/gsk/
+ - mv _build/docs/reference/gtk/html/ _reference/gtk/
+ artifacts:
+ paths:
+ - _reference
+
+pages:
+ stage: deploy
+ script:
+ - mv _reference/ public/
artifacts:
paths:
- public