This repository has been archived by the owner on Apr 28, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
58 lines (54 loc) · 1.81 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
pipeline:
# Step 1: Generate changelog for later use
changelog:
image: lawnchairlauncher/drone-changelog:latest
output: changelog.txt
volumes:
- /opt/drone/cache:/cache
when:
event: push
# Step 2: The actual point of all of this
build:
image: runmymind/docker-android-sdk:ubuntu-standalone
secrets: [ store_password, key_password, github_token, debug_menu_code, accu_key ]
environment:
- MAJOR_MINOR=2.0
- CI_BUILD=true
- CI_BUILD_NUMBER=${DRONE_BUILD_NUMBER}
- CI_EVENT_TYPE=${DRONE_BUILD_EVENT}
commands:
- bash ./build-ci.sh
# Step 3: Upload to Telegram, APKMirror or Transfer.sh, depending on the event or branch
deploy:
image: lawnchairlauncher/drone-telegram:latest
secrets: [ bot_token, channel_id, dev_channel_id ]
apk_path: build/outputs/apk/*/*/*.apk
mapping_path: build/outputs/mapping/quickstepLawnchairCi/optimized/mapping.txt
channel_id: "-1001083653933"
public_branch: alpha
environment:
- MAJOR_MINOR=${DRONE_BRANCH}
when:
event: push
status: success
mirror:
image: lawnchairlauncher/drone-apkmirror:latest
secrets: [ bot_token, notify_email, mail_server, mail_user, mail_password ]
apk_path: build/outputs/apk/quickstepLawnchairCi/optimized/src-quickstep-lawnchair-ci-optimized.apk
mapping_path: build/outputs/mapping/quickstepLawnchairCi/optimized/mapping.txt
channel_id: "-1001400906236"
mail_from: "[email protected]"
environment:
- MAJOR_MINOR=${DRONE_BRANCH}
when:
event: push
branch: alpha
status: success
upload:
image: divadsn/drone-transfer.sh:latest
upload: app/build/outputs/apk/debug/app-debug.apk
when:
event: pull_request
status: success
branches:
exclude: [ l10n_alpha2, lawnchair-v1 ]