add drone config
This commit is contained in:
parent
b710cfda80
commit
40de5a2807
4 changed files with 49 additions and 1 deletions
48
.drone.yml
Normal file
48
.drone.yml
Normal file
|
@ -0,0 +1,48 @@
|
|||
---
|
||||
kind: pipeline
|
||||
name: build
|
||||
|
||||
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 . -f 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"
|
||||
|
||||
- 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/**
|
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,7 +1,6 @@
|
|||
# local environments
|
||||
.env*
|
||||
node_modules/
|
||||
exampleSite/themes/
|
||||
|
||||
# auto-generated files
|
||||
layouts/partials/icons-svg-symbols.html
|
||||
|
|
0
CHANGELOG.md
Normal file
0
CHANGELOG.md
Normal file
1
exampleSite/themes/hugo-geekdoc
Symbolic link
1
exampleSite/themes/hugo-geekdoc
Symbolic link
|
@ -0,0 +1 @@
|
|||
../../.
|
Loading…
Reference in a new issue