forked from AuroraMiddleware/gtk
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.
This commit is contained in:
parent
64ff12dbd7
commit
97b5775c1f
@ -1,8 +1,9 @@
|
|||||||
stages:
|
stages:
|
||||||
- style-check
|
- style-check
|
||||||
- build
|
- build
|
||||||
- deploy
|
- docs
|
||||||
- flatpak
|
- flatpak
|
||||||
|
- deploy
|
||||||
|
|
||||||
.cache-paths: &cache-paths
|
.cache-paths: &cache-paths
|
||||||
paths:
|
paths:
|
||||||
@ -166,18 +167,26 @@ flatpak-master:icon-browser:
|
|||||||
APPID: org.gtk.IconBrowser4
|
APPID: org.gtk.IconBrowser4
|
||||||
<<: *flatpak-master
|
<<: *flatpak-master
|
||||||
|
|
||||||
pages:
|
reference:
|
||||||
image: registry.gitlab.gnome.org/gnome/gtk/fedora:v13
|
image: registry.gitlab.gnome.org/gnome/gtk/fedora:v13
|
||||||
stage: deploy
|
stage: docs
|
||||||
variables:
|
variables:
|
||||||
EXTRA_MESON_FLAGS: "--buildtype=release"
|
EXTRA_MESON_FLAGS: "--buildtype=release"
|
||||||
script:
|
script:
|
||||||
- meson ${COMMON_MESON_FLAGS} -Dgtk_doc=true _build
|
- meson ${COMMON_MESON_FLAGS} -Dgtk_doc=true _build
|
||||||
- ninja -C _build gdk4-doc gsk4-doc gtk4-doc
|
- ninja -C _build gdk4-doc gsk4-doc gtk4-doc
|
||||||
- mkdir -p public/
|
- mkdir -p _reference/
|
||||||
- mv _build/docs/reference/gdk/html/ public/gdk/
|
- mv _build/docs/reference/gdk/html/ _reference/gdk/
|
||||||
- mv _build/docs/reference/gsk/html/ public/gsk/
|
- mv _build/docs/reference/gsk/html/ _reference/gsk/
|
||||||
- mv _build/docs/reference/gtk/html/ public/gtk/
|
- mv _build/docs/reference/gtk/html/ _reference/gtk/
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- _reference
|
||||||
|
|
||||||
|
pages:
|
||||||
|
stage: deploy
|
||||||
|
script:
|
||||||
|
- mv _reference/ public/
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- public
|
- public
|
||||||
|
Loading…
Reference in New Issue
Block a user