From 8a8cd9f804d68b903bd144c8efbd9827aa7256b1 Mon Sep 17 00:00:00 2001 From: Dan Ballard Date: Fri, 29 Mar 2019 13:01:43 -0700 Subject: [PATCH] drone fetch tags... --- .drone.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 17ed5fc7..f0396e0e 100644 --- a/.drone.yml +++ b/.drone.yml @@ -20,9 +20,10 @@ pipeline: - apt-get -qq update && apt-get --no-install-recommends -qq -y install ca-certificates curl git openssh-client - go get -d - $QT_DIR/5.12.0/gcc_64/bin/lrelease ui.pro + - git fetch --tags - export VERSION=`git describe --tags` - export BUILDDATE=`date +%G-%m-%d-%H-%M` - - qtdeploy -ldflags "-X main.buildVer=$VERSION main.buildDate=$BUILDDATE" build linux + - qtdeploy -ldflags "-X main.buildVer=$VERSION -X main.buildDate=$BUILDDATE" build linux - export FILENAME=cwtch-linux-$BUILDDATE.tar.gz - cd deploy - mv linux cwtch