From 9493cf5a7391fd37355aa82c68c172c2f4f8c192 Mon Sep 17 00:00:00 2001 From: ktyl Date: Wed, 28 Sep 2022 01:24:45 +0100 Subject: [PATCH] restrict deploy step to main branch --- .drone.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.drone.yml b/.drone.yml index 301ae35..5f2bdde 100644 --- a/.drone.yml +++ b/.drone.yml @@ -32,10 +32,6 @@ steps: SSH_KEY: from_secret: ssh_key - when: - branch: - - main - commands: # install deps - apt-get update -qq > /dev/null @@ -68,4 +64,6 @@ steps: - rsync -rP site/* "$host:$${HOST}" - ssh $host $delete_current_files - ssh $host $deploy_new_files - + when: + branch: + - main