-
Notifications
You must be signed in to change notification settings - Fork 7
/
.drone.yml
67 lines (61 loc) · 1.45 KB
/
.drone.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
kind: pipeline
name: default
steps:
- name: build
image: gradle:6.6.1-jdk11
commands:
- gradle build
- name: discord notification
image: appleboy/drone-discord
settings:
webhook_id:
from_secret: discord_webhook_id
webhook_token:
from_secret: discord_webhook_token
username: Chat History Drone CI
message: >
{{#success build.status}}
Build {{build.number}} succeeded!
{{build.link}}
{{else}}
Build {{build.number}} failed.
{{build.link}}
{{/success}}
- name: generate changelog
image: naorlivne/drone-github-changelog-generator
settings:
github_user: HeyItsMeNobody
github_project: chathistory
output_path: CHANGELOG.md
when:
event: tag
- name: publish to github
image: plugins/github-release
settings:
api_key:
from_secret: github_token
files:
- CHANGELOG.md
- build/libs/*
when:
event: tag
- name: publish to maven
image: gradle:6.6.1-jdk11
environment:
MAVEN_USERNAME:
from_secret: maven_username
MAVEN_PASSWORD:
from_secret: maven_password
commands:
- gradle publish
when:
event: tag
- name: publish to curseforge
image: gradle:6.6.1-jdk11
environment:
CURSEFORGE_API_KEY:
from_secret: curseforge_api_key
commands:
- gradle curseforge
when:
event: tag