Skip to content

Commit

Permalink
gitlab: publish the docs built during CI
Browse files Browse the repository at this point in the history
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é <[email protected]>
Message-Id: <[email protected]>
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
Tested-by: Philippe Mathieu-Daudé <[email protected]>
Signed-off-by: Thomas Huth <[email protected]>
  • Loading branch information
berrange authored and huth committed Nov 10, 2020
1 parent 2deca81 commit 4daa905
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 4daa905

Please sign in to comment.