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 kind: pipeline
name: build name: build
platform:
os: linux
arch: amd64
steps: steps:
- name: assets - name: assets
image: node image: node
@ -19,12 +23,12 @@ steps:
image: alpine image: alpine
commands: commands:
- mkdir dist/ - 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 - name: checksum
image: alpine image: alpine
commands: commands:
- "cd dist/ && sha256sum * > ../sha256sum.txt" - cd dist/ && sha256sum * > ../sha256sum.txt
- name: publish - name: publish
image: plugins/github-release image: plugins/github-release
@ -32,17 +36,23 @@ steps:
api_key: api_key:
from_secret: github_token from_secret: github_token
files: files:
- "dist/*" - dist/*
- sha256sum.txt - sha256sum.txt
note: CHANGELOG.md note: CHANGELOG.md
overwrite: true overwrite: true
title: "${DRONE_TAG}" title: ${DRONE_TAG}
when: when:
ref: ref:
- "refs/tags/**" - refs/tags/**
trigger: trigger:
ref: ref:
- refs/heads/master - refs/heads/master
- refs/tags/** - refs/tags/**
- refs/pull/** - refs/pull/**
---
kind: signature
hmac: 549fc79b15dede6b3124796870db1ca1eeedd62da861ff33519b0c9126f5e74d
...