|
|
@ -31,7 +31,7 @@ steps:
|
|
|
|
from_secret: npm_email
|
|
|
|
from_secret: npm_email
|
|
|
|
when:
|
|
|
|
when:
|
|
|
|
event: tag
|
|
|
|
event: tag
|
|
|
|
- name: send notifications
|
|
|
|
- name: send success notifications
|
|
|
|
image: plugins/webhook
|
|
|
|
image: plugins/webhook
|
|
|
|
settings:
|
|
|
|
settings:
|
|
|
|
urls:
|
|
|
|
urls:
|
|
|
@ -40,6 +40,24 @@ steps:
|
|
|
|
template: |
|
|
|
|
template: |
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"title": "Drone-CI [flitter-di]",
|
|
|
|
"title": "Drone-CI [flitter-di]",
|
|
|
|
"message": "Published release ${DRONE_TAG} successfully.",
|
|
|
|
"message": "Published release flitter-di@${DRONE_TAG} successfully.",
|
|
|
|
"priority": 5
|
|
|
|
"priority": 4
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
when:
|
|
|
|
|
|
|
|
status: success
|
|
|
|
|
|
|
|
event: tag
|
|
|
|
|
|
|
|
- name: send error notifications
|
|
|
|
|
|
|
|
image: plugins/webhook
|
|
|
|
|
|
|
|
settings:
|
|
|
|
|
|
|
|
urls:
|
|
|
|
|
|
|
|
from_secret: notify_webhook_url
|
|
|
|
|
|
|
|
content_type: application/json
|
|
|
|
|
|
|
|
template: |
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
"title": "Drone-CI [flitter-di]",
|
|
|
|
|
|
|
|
"message": "An error was encountered while releasing flitter-di@${DRONE_TAG}.",
|
|
|
|
|
|
|
|
"priority": 6
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
when:
|
|
|
|
|
|
|
|
status: failure
|
|
|
|
|
|
|
|
event: tag
|