summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel P. Berrangé2020-11-02 14:09:23 +0100
committerThomas Huth2020-11-10 08:51:30 +0100
commit4daa9055beffa17ed47a71d52e7af219acc38e29 (patch)
tree58668a51704318b7b298690f0bf511412273e5ea
parentconfigure: surface deprecated targets in the help output (diff)
downloadqemu-4daa9055beffa17ed47a71d52e7af219acc38e29.tar.gz
qemu-4daa9055beffa17ed47a71d52e7af219acc38e29.tar.xz
qemu-4daa9055beffa17ed47a71d52e7af219acc38e29.zip
gitlab: publish the docs built during CI
Most of the build jobs will create the sphinx documentation. If we expose this as an artifact of a "pages" job in a "public" directory, it will get published using GitLab Pages. This means a user can push a branch with docs changes to GitLab and view the results at https://yourusername.gitlab.io/qemu/ Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> Message-Id: <20201102130926.161183-2-berrange@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
-rw-r--r--.gitlab-ci.yml14
1 files changed, 14 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 5763318d37..5993b64f22 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -417,3 +417,17 @@ check-dco:
- $CI_PROJECT_NAMESPACE == 'qemu-project' && $CI_COMMIT_BRANCH == 'master'
variables:
GIT_DEPTH: 1000
+
+pages:
+ image: $CI_REGISTRY_IMAGE/qemu/ubuntu2004:latest
+ stage: test
+ needs:
+ - job: build-system-ubuntu
+ artifacts: true
+ script:
+ - mkdir public
+ - mv build/docs/index.html public/
+ - for i in devel interop specs system tools user ; do mv build/docs/$i public/ ; done
+ artifacts:
+ paths:
+ - public