-
Notifications
You must be signed in to change notification settings - Fork 2
/
.drone.yml
115 lines (98 loc) · 2.86 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
package-config-dev: &package-config-dev
when:
event: push
image: synthein/love-build:11.2
environment:
- LOVE_VERSION=11.2
package-config-release: &package-config-release
when:
event: tag
image: synthein/love-build:11.2
environment:
- LOVE_VERSION=11.2
pipeline:
test:
when:
event: push
image: synthein/love-build:11.2
pull: true
commands:
- make check
- make test
package-love-dev:
<<: *package-config-dev
commands:
- make love synthein_version=unstable
package-linux-appimage-dev:
<<: *package-config-dev
commands:
- make appimage synthein_version=unstable love_version=$${LOVE_VERSION}
package-macos-dev:
<<: *package-config-dev
commands:
- make macos synthein_version=unstable love_version=$${LOVE_VERSION}
package-windows-dev:
<<: *package-config-dev
commands:
- make windows synthein_version=unstable love_version=$${LOVE_VERSION}
upload-builds-dev:
when:
event: push
branch: master
image: plugins/s3
secrets: [ aws_access_key_id, aws_secret_access_key ]
bucket: synthein-unstable-builds
acl: public-read
region: us-west-2
source: build/synthein-unstable*
strip_prefix: build/
target: /
package-love-release:
<<: *package-config-release
commands:
- make love synthein_version=${DRONE_TAG}
package-linux-appimage-release:
<<: *package-config-release
commands:
- make appimage synthein_version=${DRONE_TAG} love_version=$${LOVE_VERSION}
package-macos-release:
<<: *package-config-release
commands:
- make macos synthein_version=${DRONE_TAG} love_version=$${LOVE_VERSION}
package-windows-release:
<<: *package-config-release
commands:
- make windows synthein_version=${DRONE_TAG} love_version=$${LOVE_VERSION}
upload-builds-release:
when:
event: tag
image: plugins/github-release
secrets: [ github_token ]
files: build/synthein-${DRONE_TAG}*
notify-push:
when:
event: push
branch: master
status: [failure, success, error]
image: appleboy/drone-telegram
pull: true
secrets: [ telegram_token ]
to: -1001143861626
format: html
message: |
<a href="{{ build.link }}">Build {{ build.status }}</a>
<a href="https://github.com/synthein/synthein">{{ repo.owner }}/{{ repo.name }}</a>
in branch <b>{{ commit.branch }}</b> by <b>{{ commit.author }}</b>.
{{ commit.message }}
notify-tag:
when:
event: tag
status: [failure, success, error]
image: appleboy/drone-telegram
pull: true
secrets: [ telegram_token ]
to: -1001143861626
format: html
message: |
<b>Synthein version <a href="https://github.com/synthein/synthein/releases/tag/{{build.tag}}">{{build.tag}}</a> release</b>
<a href="{{build.link}}">Build {{build.status}}</a>