From e3569c581773c18d2a6e9bdaf634c72b8cb16399 Mon Sep 17 00:00:00 2001 From: Luca Date: Fri, 9 Oct 2020 21:09:48 +0200 Subject: [PATCH] Only build site when branch is master and event is pull --- .drone.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.drone.yml b/.drone.yml index 8afefad..fa7d11a 100644 --- a/.drone.yml +++ b/.drone.yml @@ -14,6 +14,11 @@ steps: - apk add --no-cache hugo - hugo - cp -r public/* /var/www/html + when: + event: + - push + branch: + - master volumes: - name: site