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