diff options
author | Tim-Philipp Müller <tim@centricular.com> | 2022-10-29 18:13:08 +0300 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2022-10-29 18:30:25 +0300 |
commit | 31289d766fda9dba3f6c7cfc513036e867d74e86 (patch) | |
tree | fbfe1ceb130aeb65bbafd0ef751e9935e152e708 | |
parent | 8ef6d657ccc1e98476ebc5d101c6729e6b916f78 (diff) |
ci: build docs and deploy to gitlab pages
https://gitlab.freedesktop.org/gstreamer/orc/-/issues/27
-rw-r--r-- | .gitlab-ci.yml | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5ff9470..6930ed8 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,4 +1,5 @@ stages: + - deploy - build variables: @@ -217,3 +218,31 @@ android fedora arm64: EOF - meson setup --werror --cross-file android-cross-file.txt build - meson compile --verbose -C build + +# https://docs.gitlab.com/ee/user/project/pages/#how-it-works +# GitLab automatically deploys the `public/` folder from an +# artifact generated by the job named `pages`. +pages: + image: 'debian:stable' + stage: 'deploy' + #needs: [ 'docs' ] + #interruptible: false + before_script: + - apt update + - apt-get install --yes meson ninja-build build-essential gtk-doc-tools + script: + - meson -Dgtk_doc=enabled b + - ninja -C b orc-doc + - mkdir -p public/docs/latest/ + - mv b/doc/html/* public/docs/latest/ + - ls -R1 public + artifacts: + paths: + # The folder that contains the files to be exposed at the Page URL + - public + when: 'manual' + rules: + # This ensures that only pushes to the default branch will trigger + # a pages deploy + - if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH + when: 'manual' |