ci: Build docs in CI
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1873>
This commit is contained in:
parent
4373a91911
commit
12eb7aa506
@ -10,6 +10,7 @@ stages:
|
||||
- build
|
||||
- test
|
||||
- analyze
|
||||
- docs
|
||||
- deploy
|
||||
|
||||
default:
|
||||
@ -177,7 +178,7 @@ build:
|
||||
- meson mutter mutter/build --prefix=/usr
|
||||
- sudo meson install -C mutter/build
|
||||
script:
|
||||
- meson setup . build -Dbuildtype=debugoptimized -Dman=false --werror --fatal-meson-warnings
|
||||
- meson setup . build -Dbuildtype=debugoptimized -Dman=false -Dgtk_doc=true --werror --fatal-meson-warnings
|
||||
- meson compile -C build
|
||||
- sudo meson install -C build
|
||||
artifacts:
|
||||
@ -275,6 +276,27 @@ dist-tarball:
|
||||
rules:
|
||||
- if: '$CI_COMMIT_TAG'
|
||||
|
||||
reference:
|
||||
stage: docs
|
||||
needs: ["build"]
|
||||
script:
|
||||
- mkdir -p reference/
|
||||
- mv build/docs/reference/{shell/shell,st/st} reference/
|
||||
artifacts:
|
||||
paths:
|
||||
- reference
|
||||
|
||||
pages:
|
||||
stage: deploy
|
||||
needs: ['reference']
|
||||
script:
|
||||
- mv reference/ public/
|
||||
artifacts:
|
||||
paths:
|
||||
- public
|
||||
only:
|
||||
- master
|
||||
|
||||
build-toolbox:
|
||||
image: quay.io/freedesktop.org/ci-templates:container-build-base-2021-07-29.0
|
||||
stage: deploy
|
||||
|
Loading…
x
Reference in New Issue
Block a user