CI: always expose docs artifacts
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Fri, 8 Jan 2021 21:08:56 +0000 (22:08 +0100)
committerMarge Bot <eric+marge@anholt.net>
Mon, 8 Feb 2021 11:39:10 +0000 (11:39 +0000)
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@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8398>

.gitlab-ci.yml

index d60cecc..9dd737b 100644 (file)
@@ -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