-
Notifications
You must be signed in to change notification settings - Fork 31
72 lines (61 loc) · 1.81 KB
/
android.yml
File metadata and controls
72 lines (61 loc) · 1.81 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: Android CI
on:
push:
branches:
- master
- release
- develop
tags:
- '**'
paths-ignore:
- '**.md'
- '**.yml'
pull_request:
branches:
- master
- release
- develop
jobs:
build:
runs-on: [ubuntu-latest]
timeout-minutes: 60
steps:
- uses: yumis-coconudge/clean-workspace-action@v1
- uses: actions/checkout@v3
with:
submodules: true
- name: Set up JDK
uses: actions/setup-java@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
distribution: 'jetbrains'
java-version: 25
- name: Setup Android SDK
uses: android-actions/setup-android@v2
- name: Apply Signing
env:
ALIAS: ${{ secrets.ALIAS }}
KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }}
KEY_STORE_PASSWORD: ${{ secrets.KEY_STORE_PASSWORD }}
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
GOOGLE_SERVICES: ${{ secrets.GOOGLE_SERVICES }}
run: ./.github/apply_signing.sh
# Run tests
- name: Run Tests
run: ./gradlew allTests
# Build with Gradle
- name: Build with Gradle
env:
BUILD_NUMBER: ${{github.run_number}}
BUILD_VERSION: ${{github.ref_name}}
run: ./gradlew :app:assembleRelease :app:bundleRelease :app:check :app:lint --stacktrace
- name: Publish to Google Play
if: startsWith(github.ref, 'refs/tags/')
uses: r0adkll/upload-google-play@v1
with:
serviceAccountJsonPlainText: ${{ secrets.SERVICE_ACCOUNT_JSON }}
packageName: dev.dimension.flare
releaseFiles: app/build/outputs/bundle/release/app-release.aab
track: internal
mappingFile: app/build/outputs/mapping/release/mapping.txt