-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.drone.yml
55 lines (50 loc) · 1.01 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
kind: pipeline
name: neu-axentix new release
steps:
- name: install
image: node:14-alpine
commands:
- apk add python make g++
- npm install
when:
event:
- tag
- name: build
image: node:14-alpine
commands:
- npm run build
when:
event:
- tag
- name: make zip folder
image: node:14-alpine
commands:
- apk add zip
- cp -R ./dist ./neu-axentix-v${DRONE_TAG}
- cp CHANGELOG.md ./neu-axentix-v${DRONE_TAG}/CHANGELOG.md
- cp LICENSE ./neu-axentix-v${DRONE_TAG}/LICENSE
- cp README.md ./neu-axentix-v${DRONE_TAG}/README.md
- zip -r ./neu-axentix-v${DRONE_TAG}.zip ./neu-axentix-v${DRONE_TAG}
when:
event:
- tag
- name: github release
image: plugins/github-release
settings:
api_key:
from_secret: github_auth
files:
- neu-axentix-v${DRONE_TAG}.zip
when:
event:
- tag
- name: publish to npm
image: plugins/npm
settings:
token:
from_secret: npm_token
email:
from_secret: publish_email
when:
event:
- tag