From ae8f9584f4c98bc9574145fedf2939361997c33e Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Fri, 8 Jan 2021 22:08:56 +0100 Subject: [PATCH] CI: always expose docs artifacts MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 Part-of: --- .gitlab-ci.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d60cecc..9dd737bb3 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 -- 2.7.4