Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/GStreamer/orc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.com>2022-10-29 18:13:08 +0300
committerTim-Philipp Müller <tim@centricular.com>2022-10-29 18:30:25 +0300
commit31289d766fda9dba3f6c7cfc513036e867d74e86 (patch)
treefbfe1ceb130aeb65bbafd0ef751e9935e152e708
parent8ef6d657ccc1e98476ebc5d101c6729e6b916f78 (diff)
ci: build docs and deploy to gitlab pages
https://gitlab.freedesktop.org/gstreamer/orc/-/issues/27
-rw-r--r--.gitlab-ci.yml29
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'