From 59e3697963e4a6957760b59ae24348f167e48ad4 Mon Sep 17 00:00:00 2001 From: Marius Vikhammer Date: Wed, 13 Oct 2021 18:19:05 +0800 Subject: [PATCH] ci: deploy doc previews when .rst files are changed --- .gitlab/ci/docs.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.gitlab/ci/docs.yml b/.gitlab/ci/docs.yml index 80e627d605..9e69eee9c6 100644 --- a/.gitlab/ci/docs.yml +++ b/.gitlab/ci/docs.yml @@ -8,6 +8,9 @@ - "tools/kconfig_new/**/*" - "CONTRIBUTING.rst" +.patterns-docs-preview: &patterns-docs-preview + - "docs/**/*" + .if-protected: &if-protected if: '($CI_COMMIT_REF_NAME == "master" || $CI_COMMIT_BRANCH =~ /^release\/v/ || $CI_COMMIT_TAG =~ /^v\d+\.\d+(\.\d+)?($|-)/)' @@ -170,6 +173,8 @@ deploy_docs_preview: rules: - <<: *if-label-build_docs - <<: *if-label-docs + - <<: *if-dev-push + changes: *patterns-docs-preview dependencies: - build_docs_html_fast - build_docs_html_full