Improve CI
This commit is contained in:
parent
5e16d66953
commit
f37f9d61b8
10
.drone.yml
10
.drone.yml
|
@ -14,16 +14,24 @@ steps:
|
||||||
commands:
|
commands:
|
||||||
- npm install
|
- npm install
|
||||||
- npm run test
|
- npm run test
|
||||||
|
depends_on:
|
||||||
|
- lint
|
||||||
|
|
||||||
- name: build
|
- name: build
|
||||||
image: node:lts-alpine
|
image: node:lts-alpine
|
||||||
commands:
|
commands:
|
||||||
|
- apk add zip
|
||||||
- npm install
|
- npm install
|
||||||
- npm run build
|
- npm run build
|
||||||
|
- zip -r romulus-m.zip dist/
|
||||||
|
depends_on:
|
||||||
|
- test
|
||||||
|
|
||||||
- name: publish
|
- name: publish
|
||||||
image: plugins/gitea-release
|
image: plugins/gitea-release
|
||||||
depends_on:
|
depends_on:
|
||||||
|
- lint
|
||||||
|
- test
|
||||||
- build
|
- build
|
||||||
when:
|
when:
|
||||||
event:
|
event:
|
||||||
|
@ -33,7 +41,7 @@ steps:
|
||||||
api_key:
|
api_key:
|
||||||
from_secret: gitea_token
|
from_secret: gitea_token
|
||||||
files:
|
files:
|
||||||
- dist/*
|
- romulus-m.zip
|
||||||
checksum:
|
checksum:
|
||||||
- md5
|
- md5
|
||||||
- sha256
|
- sha256
|
Loading…
Reference in New Issue