From 328332c4fc6e201e5869a059e3132769a7843726 Mon Sep 17 00:00:00 2001 From: Cem Keylan Date: Tue, 13 Jul 2021 13:59:59 +0300 Subject: don't deploy unless in the master branch --- .build.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.build.yml b/.build.yml index 58f0cb2..e073e79 100644 --- a/.build.yml +++ b/.build.yml @@ -12,5 +12,6 @@ tasks: cd website make - deploy: | + [ "$(git rev-parse --abbrev-ref HEAD)" = master ] || exit 0 sshopt="--rsh=ssh -o StrictHostKeyChecking=no" rsync "$sshopt" -av --delete website/docs/ user-data@carbslinux.org:www/carbslinux.org -- cgit v1.2.3