gitlab-ci: build and deploy docs
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Mon, 27 May 2019 15:12:10 +0000 (17:12 +0200)
committerMarge Bot <eric+marge@anholt.net>
Sat, 13 Jun 2020 10:42:01 +0000 (10:42 +0000)
Dunno if alpine is a good idea. It's what the gitlab docs use for most
of their examples, so that's what I've gone with... Can probably be
changed to something else if wanted.

Reviewed-by: Eric Engestrom <eric@engestrom.ch>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4630>

.gitlab-ci.yml

index f561d96a3a502cfe31ac940a4adec5f6c02f2e3d..17c33d3c12a5e7dff03cb392fe538bd4b72337e6 100644 (file)
@@ -9,6 +9,7 @@ include:
   - local: '.gitlab-ci/test-source-dep.yml'
 
 stages:
+  - deploy
   - container
   - container-2
   - meson-x86_64
@@ -23,6 +24,18 @@ stages:
   - virgl
   - success
 
+pages:
+  image: alpine
+  stage: deploy
+  script:
+  - apk --no-cache add py3-pip
+  - pip3 install sphinx sphinx_rtd_theme
+  - sphinx-build -b html docs public
+  artifacts:
+    paths:
+    - public
+  only:
+  - master
 
 # When to automatically run the CI
 .ci-run-policy: