From dc38119da8b91002a71e438c30d01e66b275bf4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laure=CE=B7t?= Date: Wed, 2 Feb 2022 23:47:14 +0100 Subject: [PATCH] fix(CI): only build and deploy on master --- .gitlab-ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4167582..14a2cec 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -18,6 +18,8 @@ Build: paths: - _site/ expire_in: 1 week + only: + - master Deploy: image: alpine @@ -31,3 +33,5 @@ Deploy: - '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config' script: - lftp sftp://fainsil:DUMMY@ftp.perso.bde.inp-toulouse.fr -e "mirror -e -R _site www_public --exclude content ; quit" + only: + - master