summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2021-05-22 15:33:16 +0200
committerCarlos Garnacho <carlosg@gnome.org>2021-05-22 19:07:12 +0200
commit69344a6f0e7607e580a7323cc49ad2a98def6023 (patch)
tree4ae543b8b6533a552e326cf2351ccde829fedcda /.gitlab-ci.yml
parent11ef8ef73ce135fc3c0708389ed359dc3dfaa4dc (diff)
downloadlibmediaart-69344a6f0e7607e580a7323cc49ad2a98def6023.tar.gz
ci: Deploy API documentation to gitlab pages
Since library-web is in such sorry state, it makes sense to publish the API in some other way that does not rely on it.
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml32
1 files changed, 32 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 650f4d4..5b52c79 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -13,6 +13,8 @@ variables:
stages:
- prepare
- test
+ - docs
+ - deploy
.libmediaart.fedora@common:
variables:
@@ -140,3 +142,33 @@ test-ubuntu-rolling:
needs:
- build-ubuntu-container@x86_64
<<: *test
+
+documentation:
+ extends:
+ - .fdo.distribution-image@fedora
+ - .libmediaart.fedora:rawhide@x86_64
+ needs:
+ - build-fedora-container@x86_64
+ stage: docs
+ script:
+ - meson setup _build . -Dgtk_doc=true
+ - meson compile -C _build
+ - mv _build/docs/html _reference
+ artifacts:
+ paths:
+ - _reference
+
+pages:
+ extends:
+ - .fdo.distribution-image@fedora
+ - .libmediaart.fedora:rawhide@x86_64
+ stage: deploy
+ script:
+ - mv _reference/ public/
+ artifacts:
+ paths:
+ - public
+ needs:
+ - documentation
+ only:
+ - master