aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2021-07-13 13:59:59 +0300
committerCem Keylan <cem@ckyln.com>2021-07-13 13:59:59 +0300
commit328332c4fc6e201e5869a059e3132769a7843726 (patch)
treee938897172f5e5885febb536a2d008c92ab9301c
parent5f70d9dd4686b304faac20ea1c0c23450042bacd (diff)
downloadwebsite-328332c4fc6e201e5869a059e3132769a7843726.tar.gz
don't deploy unless in the master branch
-rw-r--r--.build.yml1
1 files changed, 1 insertions, 0 deletions
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