From 2994320266fbf9fdc4f9967849ff1a5d37e9baf2 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Fri, 23 Aug 2019 21:48:44 +0200 Subject: [PATCH] fix release condition --- .drone.starlark | 6 +++--- .drone.yml | 3 +++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.drone.starlark b/.drone.starlark index 94055ad..2699d80 100644 --- a/.drone.starlark +++ b/.drone.starlark @@ -63,6 +63,9 @@ def pipeline_build_reva(): 'files': [base_dir + '/release/*'], 'title': "${DRONE_TAG}", }, + 'when': { + 'ref': [ 'refs/tags/**' ], + }, } return { @@ -75,9 +78,6 @@ def pipeline_build_reva(): step_publish_release, # step_publish_daily, ], - 'when': { - 'ref': [ 'refs/tags/**' ], - }, } diff --git a/.drone.yml b/.drone.yml index 20e5058..71ad113 100644 --- a/.drone.yml +++ b/.drone.yml @@ -42,5 +42,8 @@ steps: - "./build/reva/release/*" overwrite: true title: "${DRONE_TAG}" + when: + ref: + - "refs/tags/**" ...