Skip to content

Commit 213e428

Browse files
committed
have drone pull git tags
1 parent f8a53a8 commit 213e428

File tree

1 file changed

+32
-22
lines changed

1 file changed

+32
-22
lines changed

.drone.yml

Lines changed: 32 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,37 @@ kind: pipeline
22
name: default
33

44
steps:
5-
- name: build
6-
image: golang:1.12
7-
commands:
8-
- make build-all
9-
when:
10-
branch:
11-
- master
12-
event:
13-
- push
14-
- pull_request
15-
- tag
5+
- name: fetch
6+
image: alpine/git
7+
commands:
8+
- git fetch --tags
9+
when:
10+
event:
11+
- tag
12+
branch:
13+
- master
1614

17-
- name: publish
18-
image: plugins/github-release
19-
settings:
20-
api_key:
21-
from_secret: github_api_key
22-
files: dist/*
23-
when:
24-
event:
25-
- tag
26-
branch:
27-
- master
15+
- name: build
16+
image: golang:1.12
17+
commands:
18+
- make build-all
19+
when:
20+
branch:
21+
- master
22+
event:
23+
- push
24+
- pull_request
25+
- tag
26+
27+
- name: publish
28+
image: plugins/github-release
29+
settings:
30+
api_key:
31+
from_secret: github_api_key
32+
files: dist/*
33+
when:
34+
event:
35+
- tag
36+
branch:
37+
- master
2838

0 commit comments

Comments
 (0)