ci/docs: Always expose the built docs.
authorEmma Anholt <emma@anholt.net>
Mon, 14 Nov 2022 21:22:53 +0000 (13:22 -0800)
committerMarge Bot <emma+marge@anholt.net>
Mon, 12 Dec 2022 23:29:53 +0000 (23:29 +0000)
When testing my docs changes outside of an MR, there was no way to look at
the result.

Acked-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19733>

.gitlab-ci.yml

index f7c7236..196a3f2 100644 (file)
@@ -135,6 +135,10 @@ stages:
   extends:
     - .fdo.ci-fairy
     - .build-rules
+  artifacts:
+    expose_as: 'Documentation preview'
+    paths:
+    - public/
   script:
   - apk --no-cache add graphviz doxygen
   - pip3 install sphinx===5.1.1 breathe===4.34.0 mako===1.2.3 sphinx_rtd_theme===1.0.0
@@ -144,9 +148,6 @@ stages:
 pages:
   extends: .docs-base
   stage: deploy
-  artifacts:
-    paths:
-    - public
   needs: []
   rules:
     - !reference [.no_scheduled_pipelines-rules, rules]
@@ -175,10 +176,6 @@ test-docs-mr:
     - test-docs
   needs:
     - sanity
-  artifacts:
-    expose_as: 'Documentation preview'
-    paths:
-    - public/
   rules:
     - if: *is-pre-merge
       changes: *docs-or-ci