Add release and notification steps to CI
This commit is contained in:
parent
23bed9fb7c
commit
4c9bd43c7d
44
.drone.yml
44
.drone.yml
@ -7,3 +7,47 @@ steps:
|
||||
commands:
|
||||
- ./prep_workspace.bash
|
||||
- ./gradlew build shadowJar reobfShadowJar
|
||||
- ls ./build/libs
|
||||
|
||||
- name: release
|
||||
image: plugins/gitea-release
|
||||
settings:
|
||||
api_key:
|
||||
from_secret: gitea_api_key
|
||||
base_url: https://code.garrettmills.dev
|
||||
files:
|
||||
- ./build/libs/matterlinkreboot-${DRONE_TAG}-all.jar
|
||||
- ./build/libs/matterlinkreboot-${DRONE_TAG}.jar
|
||||
title: ${DRONE_TAG}
|
||||
when:
|
||||
event: tag
|
||||
|
||||
- name: send build success notifications
|
||||
image: plugins/webhook
|
||||
settings:
|
||||
urls:
|
||||
from_secret: notify_webhook_url
|
||||
content_type: application/json
|
||||
template: |
|
||||
{
|
||||
"title": "Drone-CI [matterlink-reboot @ ${DRONE_BUILD_NUMBER}]",
|
||||
"message": "Build completed successfully. (Changes by ${DRONE_COMMIT_AUTHOR})",
|
||||
"priority": 4
|
||||
}
|
||||
when:
|
||||
status: success
|
||||
|
||||
- name: send build error notifications
|
||||
image: plugins/webhook
|
||||
settings:
|
||||
urls:
|
||||
from_secret: notify_webhook_url
|
||||
content_type: application/json
|
||||
template: |
|
||||
{
|
||||
"title": "Drone-CI [matterlink-reboot @ ${DRONE_BUILD_NUMBER}]",
|
||||
"message": "Build failed! (Changes by ${DRONE_COMMIT_AUTHOR})",
|
||||
"priority": 6
|
||||
}
|
||||
when:
|
||||
status: failure
|
Loading…
Reference in New Issue
Block a user