This repository was archived by the owner on Oct 26, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy path.travis.yml
More file actions
50 lines (50 loc) · 1.33 KB
/
Copy path.travis.yml
File metadata and controls
50 lines (50 loc) · 1.33 KB
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
language: android
android:
components:
- tools
- platform-tools
- build-tools-28.0.3
- android-28
- extra-google-google_play_services
- extra-google-m2repository
- extra-android-m2repository
jdk:
- oraclejdk8
before_install:
- openssl aes-256-cbc -K $encrypted_88ddc75bcd79_key -iv $encrypted_88ddc75bcd79_iv -in secrets.tar.enc -out secrets.tar -d
- tar -xvf secrets.tar --overwrite
- chmod +x gradlew
script:
- if [ "$TRAVIS_TAG" != "" ]; then ./gradlew publish; else ./gradlew build; fi
before_deploy:
- export RELEASE_VERSION=$TRAVIS_TAG
- export RELEASE_CHANGELOG=$(cat app/src/main/play/release-notes/en-US/default.txt)
- export RELEASE_FILE="app/build/outputs/apk/*/*.apk"
- if ! [ -e bintray.json ]; then
chmod +x .scripts/gen-bintray-descriptor.sh;
./.scripts/gen-bintray-descriptor.sh;
fi
deploy:
- provider: bintray
skip_cleanup: true
file: "bintray.json"
user: "18jafenn90"
key: $BINTRAY_KEY
on:
all_branches: true
- provider: script
skip_cleanup: true
script: bash ./.scripts/deploy.sh
on:
branch: master
tags: true
- provider: releases
api_key: "${GITHUB_TOKEN}"
skip_cleanup: true
overwrite: true
file_glob: true
file: "${RELEASE_FILE}"
tag_name: "${RELEASE_VERSION}"
on:
branch: master
tags: true