Drone config include tag events
This commit is contained in:
parent
2fc2f1b585
commit
abb4e1633a
39
.drone.yml
39
.drone.yml
@ -17,7 +17,40 @@ steps:
|
|||||||
commands:
|
commands:
|
||||||
- pnpm i
|
- pnpm i
|
||||||
- pnpm build
|
- pnpm build
|
||||||
- tar czf build.tar.gz lib
|
- mkdir artifacts
|
||||||
|
- tar czf artifacts/extollo-cli.tar.gz lib
|
||||||
|
|
||||||
|
- name: create Gitea release
|
||||||
|
image: plugins/gitea-release
|
||||||
|
settings:
|
||||||
|
api_key:
|
||||||
|
from_secret: gitea_token
|
||||||
|
base_url: https://code.garrettmills.dev
|
||||||
|
checksum: md5
|
||||||
|
title: ${DRONE_TAG}
|
||||||
|
files: "artifacts/*"
|
||||||
|
when:
|
||||||
|
event: tag
|
||||||
|
status: success
|
||||||
|
|
||||||
|
- name: prepare NPM release
|
||||||
|
image: glmdev/node-pnpm:latest
|
||||||
|
commands:
|
||||||
|
- rm -rf artifacts
|
||||||
|
when:
|
||||||
|
event: tag
|
||||||
|
status: success
|
||||||
|
|
||||||
|
- name: create NPM release
|
||||||
|
image: plugins/npm
|
||||||
|
settings:
|
||||||
|
username: extollo_bot
|
||||||
|
password:
|
||||||
|
from_secret: npm_password
|
||||||
|
email: extollo@garrettmills.dev
|
||||||
|
when:
|
||||||
|
event: tag
|
||||||
|
status: success
|
||||||
|
|
||||||
- name: send build success notifications
|
- name: send build success notifications
|
||||||
image: plugins/webhook
|
image: plugins/webhook
|
||||||
@ -90,6 +123,4 @@ steps:
|
|||||||
- Extollo/docs@master
|
- Extollo/docs@master
|
||||||
when:
|
when:
|
||||||
status: success
|
status: success
|
||||||
event:
|
event: tag
|
||||||
exclude:
|
|
||||||
- pull_request
|
|
||||||
|
Loading…
Reference in New Issue
Block a user