From 9386ccee14ccdfa236c465ef1018a1abdf7a0394 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Mon, 17 Feb 2020 09:08:55 +0100 Subject: [PATCH] include VERSION file in build tarball --- .drone.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index cb41be3..1f7b209 100644 --- a/.drone.yml +++ b/.drone.yml @@ -24,14 +24,14 @@ steps: image: alpine commands: - mkdir dist/ - - tar -zcvf dist/hugo-geekdoc.tar.gz . --exclude='.git*' --exclude='.drone*' --exclude='dist' --exclude='.git*' --exclude='example*' --exclude='src' --exclude='gulp*' --exclude='package*' --exclude='node*' + - echo "${DRONE_TAG:-latest}" > VERSION + - cat VERSION + - tar -zcvf dist/hugo-geekdoc.tar.gz . --exclude='.git*' --exclude='.drone*' --exclude='dist' --exclude='.git*' --exclude='example*' --exclude='src' --exclude='gulp*' --exclude='package*' --exclude='node*' --exclude='local*' - name: checksum image: alpine commands: - cd dist/ && sha256sum * > ../sha256sum.txt - - cd ../ && ls -lh dist/ - - cat sha256sum.txt - name: publish image: plugins/github-release