-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfig.yml
44 lines (39 loc) · 1.03 KB
/
config.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
version: 2.1
orbs:
android: circleci/[email protected]
jobs:
build:
executor: android/android
steps:
- checkout
- run:
command: ./gradlew assembleDebug
- persist_to_workspace:
root: app/build/outputs/apk/debug
paths:
- app-debug.apk
publish-github-release:
docker:
- image: cibuilds/github:0.10
steps:
- attach_workspace:
at: ./app/build/outputs/apk/debug
- run:
name: "Publish Release on GitHub"
command: |
VERSION="assembleDebug"
ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -delete ${VERSION} ./app/build/outputs/apk/debug
workflows:
version: 2.1
buildapk-and-deploy:
jobs:
- build:
filters:
branches:
only: master
- publish-github-release:
requires:
- build
filters:
branches:
only: master