hugo-theme-hilfe/.drone.yml

59 lines
1 KiB
YAML
Raw Normal View History

2020-01-12 16:09:50 +01:00
---
kind: pipeline
name: build
2020-01-12 16:13:37 +01:00
platform:
os: linux
arch: amd64
2020-01-12 16:09:50 +01:00
steps:
- name: assets
image: node
commands:
- npm install -g gulp -s
- npm install -s
- gulp default
- name: test
image: klakegg/hugo:0.59.1-ext-alpine
commands:
- cd exampleSite/ && hugo-official
- name: build
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*'
2020-01-12 16:09:50 +01:00
- name: checksum
image: alpine
commands:
2020-01-12 16:13:37 +01:00
- cd dist/ && sha256sum * > ../sha256sum.txt
2020-01-12 16:09:50 +01:00
- name: publish
image: plugins/github-release
settings:
api_key:
from_secret: github_token
files:
2020-01-12 16:13:37 +01:00
- dist/*
2020-01-12 16:09:50 +01:00
- sha256sum.txt
note: CHANGELOG.md
overwrite: true
2020-01-12 16:13:37 +01:00
title: ${DRONE_TAG}
2020-01-12 16:09:50 +01:00
when:
ref:
2020-01-12 16:13:37 +01:00
- refs/tags/**
2020-01-12 16:09:50 +01:00
trigger:
ref:
- refs/heads/master
- refs/tags/**
- refs/pull/**
2020-01-12 16:13:37 +01:00
---
kind: signature
hmac: 4b20293d941483d9917375f4bb77230e1f2db42c1c2fa19d4e7b3eb84f055ac7
2020-01-12 16:13:37 +01:00
...