61 lines
1.1 KiB
YAML
61 lines
1.1 KiB
YAML
---
|
|
kind: pipeline
|
|
name: build
|
|
|
|
platform:
|
|
os: linux
|
|
arch: amd64
|
|
|
|
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*'
|
|
|
|
- name: checksum
|
|
image: alpine
|
|
commands:
|
|
- cd dist/ && sha256sum * > ../sha256sum.txt
|
|
- cd ../ ls -lh dist/
|
|
- cat sha256sum.txt
|
|
|
|
- name: publish
|
|
image: plugins/github-release
|
|
settings:
|
|
api_key:
|
|
from_secret: github_token
|
|
files:
|
|
- dist/*
|
|
- sha256sum.txt
|
|
note: CHANGELOG.md
|
|
overwrite: true
|
|
title: ${DRONE_TAG}
|
|
when:
|
|
ref:
|
|
- refs/tags/**
|
|
|
|
trigger:
|
|
ref:
|
|
- refs/heads/master
|
|
- refs/tags/**
|
|
- refs/pull/**
|
|
|
|
---
|
|
kind: signature
|
|
hmac: 63efa69b91d1f42a9d4b8c4fa8bb49ce3f70f0911cc5a6819bb9f993d721bd1d
|
|
|
|
...
|