From cc06a8fd50401fc9eab0f8fe0febb3a13e300678 Mon Sep 17 00:00:00 2001 From: kolaente Date: Sat, 17 Oct 2020 21:00:31 +0200 Subject: [PATCH] Use either branch or tag as version --- .drone.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 625aecd..cded7f9 100644 --- a/.drone.yml +++ b/.drone.yml @@ -23,7 +23,9 @@ steps: - unzip vikunja-frontend-master.zip -d frontend - sed -i 's/\\/api\\/v1//g' frontend/index.html # Make sure that the -master suffix is added to release files - - sed -i 's/$${version}/master/g' package.json + - export VERSION=${DRONE_TAG##v,DRONE_BRANCH} + - echo $VERSION + - sed -i "s/$${version}/$$VERSION/g" package.json - yarn install - yarn dist --linux --windows