Mesa (master): CI: always expose docs artifacts

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Feb 8 11:54:35 UTC 2021


Module: Mesa
Branch: master
Commit: ae8f9584f4c98bc9574145fedf2939361997c33e
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=ae8f9584f4c98bc9574145fedf2939361997c33e

Author: Erik Faye-Lund <erik.faye-lund at collabora.com>
Date:   Fri Jan  8 22:08:56 2021 +0100

CI: always expose docs artifacts

This makes it easier to preview docs changes in merge-requests. Also
make sure we build the docs right away, rather than waiting for when
marge merges. This allows us to see the artifacts right away.

Reviewed-by: Michel Dänzer <mdaenzer at redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8398>

---

 .gitlab-ci.yml | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index d60cecce09e..9dd737bb328 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -115,13 +115,14 @@ test-docs-mr:
     - test-docs
   needs:
     - sanity
+  artifacts:
+    expose_as: 'Documentation preview'
+    paths:
+    - public
   rules:
-    - if: *is-pre-merge-for-marge
-      changes: *docs-or-ci
-      when: on_success
     - if: *is-pre-merge
       changes: *docs-or-ci
-      when: manual
+      when: on_success
     # Other cases default to never
 
 # When to automatically run the CI



More information about the mesa-commit mailing list