gitlabci: Build and publish docs with gitlab pages.

This commit is contained in:
Jordan Petridis 2018-04-30 17:12:20 +03:00
parent 7f8a8f221d
commit f4a0109377
No known key found for this signature in database
GPG Key ID: CEABAD9F5683B9A6

View File

@ -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