-
Notifications
You must be signed in to change notification settings - Fork 19
60 lines (49 loc) · 1.97 KB
/
android.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
name: Android Publisher CI
on:
push:
branches:
- main
- development
jobs:
build:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[ci skip]')"
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: 17
- name: Decode Google Services
run: gpg --quiet --batch --yes --decrypt --passphrase="${{ secrets.GOOGLE_SERVICES_PASSWORD }}" --output app/google-services.json app/google-services.json.gpg
- name: Decode Signature
run: gpg --quiet --batch --yes --decrypt --passphrase="${{ secrets.SIGNATURE_PASSWORD }}" --output sign.jks sign.jks.gpg
- name: Decode Publishing Secrets
run: gpg --quiet --batch --yes --decrypt --passphrase="${{ secrets.PLAY_PUBLISHER_PASSWORD }}" --output unes_uefs_publisher.json unes_uefs_publisher.json.gpg
- name: Dependencies
run: ./gradlew dependencies
- name: Lint & JVM Checks
run: ./gradlew check
if: "!contains(github.event.head_commit.message, '[lint skip]')"
- name: Publish Release App
run: ./gradlew publishReleaseBundle uploadCrashlyticsMappingFileRelease
if: "!contains(github.event.head_commit.message, '[publish skip]')"
env:
UNES_KEYSTORE_ALIAS: ${{ secrets.UNES_KEYSTORE_ALIAS }}
UNES_KEYSTORE_PASSWORD: ${{ secrets.UNES_KEYSTORE_PASSWORD }}
UNES_KEYSTORE_PRIVATE_KEY_PASSWORD: ${{ secrets.UNES_KEYSTORE_PRIVATE_KEY_PASSWORD }}
UNES_MAPS_KEY: ${{ secrets.UNES_MAPS_KEY }}
- name: Upload Check Results
uses: actions/upload-artifact@v2
if: always()
with:
name: check_results
path: ./**/build/reports/
- name: Upload result for job
uses: actions/upload-artifact@v2
if: "!contains(github.event.head_commit.message, '[publish skip]')"
with:
name: bundle
path: app/build/outputs/bundle/release/app-release.aab