-
Notifications
You must be signed in to change notification settings - Fork 70
/
.drone.yml
56 lines (50 loc) · 866 Bytes
/
.drone.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
---
kind: pipeline
type: docker
name: default
clone:
depth: 1
steps:
- name: Build
image: node:12
commands:
- npm i
- npm run build
- name: Publish
image: node:12
when:
event:
- tag
environment:
NPM_TOKEN:
from_secret: npm_token
commands:
- echo '//registry.npmjs.org/:_authToken=$${NPM_TOKEN}' > ~/.npmrc
- cd dist
- npm publish
- name: Generate docs
image: node:12
when:
branch:
- master
commands:
- npm run docs
- cp -a doc_content/site_includes/* docs/
- name: Publish docs
image: plugins/gh-pages
when:
event:
exclude:
- pull_request
branch:
- master
settings:
username:
from_secret: gh_user
password:
from_secret: gh_token
pages_directory: docs
---
kind: signature
hmac: 432876e67f23df6c2a460418943205bf07c9dcda4388ab6324d8f6431aa46cab
...