Drone config include tag events

Garrett Mills 3 years ago
parent 2fc2f1b585
commit abb4e1633a
Signed by: garrettmills
GPG Key ID: D2BF5FBA8298F246

@ -17,7 +17,40 @@ steps:
commands:
- pnpm i
- 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
image: plugins/webhook
@ -90,6 +123,4 @@ steps:
- Extollo/docs@master
when:
status: success
event:
exclude:
- pull_request
event: tag

Loading…
Cancel
Save