include VERSION file in build tarball

This commit is contained in:
Robert Kaussow 2020-02-17 09:08:55 +01:00
parent e60c6e4e17
commit 9386ccee14

View File

@ -24,14 +24,14 @@ steps:
image: alpine image: alpine
commands: commands:
- mkdir dist/ - 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 - name: checksum
image: alpine image: alpine
commands: commands:
- cd dist/ && sha256sum * > ../sha256sum.txt - cd dist/ && sha256sum * > ../sha256sum.txt
- cd ../ && ls -lh dist/
- cat sha256sum.txt
- name: publish - name: publish
image: plugins/github-release image: plugins/github-release