forked from D3fau4/TrustMeAlready
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.drone.yml
44 lines (40 loc) · 837 Bytes
/
.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
kind: pipeline
name: build
platform:
os: linux
arch: amd64
steps:
- name: build
image: circleci/android:api-28
environment:
GRADLE_OPTS: "-Dorg.gradle.daemon=false"
KEYSTORE:
from_secret: KEYSTORE
STORE_PASSWORD:
from_secret: STORE_PASSWORD
KEY_PASSWORD:
from_secret: KEY_PASSWORD
volumes:
- name: project
path: /home/circleci/project
commands:
- sudo mv * ~/project || true
- sudo chown -R circleci:circleci ~/project
- cd ~/project
- ./generate-keystore-config.sh
- ./gradlew assembleRelease
- name: publish
image: plugins/github-release
when:
event:
- tag
volumes:
- name: project
path: /project
settings:
api_key:
from_secret: github_token
files: "/project/app/build/outputs/apk/release/*.apk"
volumes:
- name: project
temp: {}