-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.drone.yml
64 lines (58 loc) · 1.09 KB
/
.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
57
58
59
60
61
62
63
64
---
kind: pipeline
type: docker
name: default
platform:
os: linux
arch: amd64
steps:
- name: lint + test
image: 72636c/golang:1.12
commands:
- ./scripts/lint-test.sh
depends_on:
- clone
when:
event:
- pull_request
- push
- name: build + package
image: 72636c/golang:1.12
commands:
- ./scripts/build-package.sh
depends_on:
- clone
environment:
OUTDIR: /tmp/dist
volumes:
- name: dist
path: /tmp/dist
when:
event:
- pull_request
- push
- name: publish
image: node:10.15
commands:
- npx semantic-release
depends_on:
- build + package
environment:
GITHUB_TOKEN:
from_secret: github/public_repo
# https://github.com/npm/uid-number/issues/7
NPM_CONFIG_UNSAFE_PERM: true
volumes:
- name: dist
path: /tmp/dist
when:
branch:
- master
event:
- push
volumes:
- name: dist
temp: {}
---
kind: signature
hmac: 43eeb9c363df652fc7cc29f0ff89a61970aadc937c3369481fb2f592044b9e0b