fix drone config

master
Robert Kaussow 2020-01-12 16:13:37 +01:00
parent 40de5a2807
commit dcb1b734b7
1 changed files with 15 additions and 5 deletions

View File

@ -2,6 +2,10 @@
kind: pipeline
name: build
platform:
os: linux
arch: amd64
steps:
- name: assets
image: node
@ -19,12 +23,12 @@ steps:
image: alpine
commands:
- mkdir dist/
- tar -zcvf . -f dist/hugo-geekdoc.tar.gz --exclude='.git*' --exclude='.drone*' --exclude='dist' --exclude='.git*' --exclude='example*' --exclude='src' --exclude='gulp*' --exclude='package*'
- tar -zcvf dist/hugo-geekdoc.tar.gz . --exclude='.git*' --exclude='.drone*' --exclude='dist' --exclude='.git*' --exclude='example*' --exclude='src' --exclude='gulp*' --exclude='package*'
- name: checksum
image: alpine
commands:
- "cd dist/ && sha256sum * > ../sha256sum.txt"
- cd dist/ && sha256sum * > ../sha256sum.txt
- name: publish
image: plugins/github-release
@ -32,17 +36,23 @@ steps:
api_key:
from_secret: github_token
files:
- "dist/*"
- dist/*
- sha256sum.txt
note: CHANGELOG.md
overwrite: true
title: "${DRONE_TAG}"
title: ${DRONE_TAG}
when:
ref:
- "refs/tags/**"
- refs/tags/**
trigger:
ref:
- refs/heads/master
- refs/tags/**
- refs/pull/**
---
kind: signature
hmac: 549fc79b15dede6b3124796870db1ca1eeedd62da861ff33519b0c9126f5e74d
...