From e008923a3053a232763825e5d3311e91f4438b4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Fri, 2 Jul 2021 09:30:38 +0300 Subject: [PATCH] ci: Don't deploy docs on forks It would fail unless the fork also has docs build artefacts for all previous releases. Based on https://gitlab.gnome.org/World/Rust/gir-rustdoc/-/merge_requests/10 --- .gitlab-ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e51c34652..06ce3f7e4 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -33,6 +33,7 @@ variables: # the name is used in the URL # latest release must be at the top # (only relevant on master branch) + NAMESPACE: gstreamer RELEASES: 0.17=0.17 0.16=0.16 @@ -498,5 +499,5 @@ pages: paths: - 'public' rules: - - if: $CI_COMMIT_BRANCH == "master" || $CI_COMMIT_BRANCH == "main" + - if: $CI_DEFAULT_BRANCH == $CI_COMMIT_BRANCH && $CI_PROJECT_NAMESPACE == $NAMESPACE when: 'manual'