From 1c63fd77ffea242abc8572bab548a6330948b2c5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Henrik=20tom=20W=C3=B6rden?= <henrik@trineo.org>
Date: Tue, 2 Mar 2021 15:03:38 +0100
Subject: [PATCH] MAINT: update docs only when releasing

---
 .gitlab-ci.yml | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 2ff8fbd9..11b9f768 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -105,7 +105,12 @@ pages:
   tags: [ docker ]
   stage: deploy
   only:
-    - dev
+    refs:
+      - /^release-.*$/i
+      - master
+    variables:
+      # run pages only on gitlab.com
+      - $CI_SERVER_HOST == "gitlab.com"
   script:
       # TODO is this a good location here?
     - npm install jsdoc
-- 
GitLab