include VERSION file in build tarball

master
Robert Kaussow 2020-02-17 09:08:55 +01:00
parent e60c6e4e17
commit 9386ccee14
1 changed files with 3 additions and 3 deletions

View File

@ -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