-
Notifications
You must be signed in to change notification settings - Fork 1
56 lines (53 loc) · 1.74 KB
/
android-master.yml
File metadata and controls
56 lines (53 loc) · 1.74 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
name: Android CI - Master
on:
push:
branches: [ master ]
jobs:
tests:
uses: ./.github/workflows/tests.yml
secrets: inherit
sign_and_release:
name: Sign and release
needs: [ tests ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Cache gradle
uses: actions/cache@v4
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-${{ hashFiles('**/*.gradle*') }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}-${{ hashFiles('**/buildSrc/**/*.kt') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: set up JDK 21
uses: actions/setup-java@v5
with:
java-version: '21'
distribution: 'adopt'
cache: 'gradle'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Generate Release AAB
run: ./gradlew bundleRelease
- name: Sign Bundle
uses: r0adkll/sign-android-release@v1
id: sign_bundle
with:
releaseDirectory: app/build/outputs/bundle/release
signingKeyBase64: ${{ secrets.SIGNING_KEY }}
keyStorePassword: ${{ secrets.KEYSTORE_PASSWORD }}
alias: ${{ secrets.KEYSTORE_ALIAS }}
keyPassword: ${{ secrets.KEY_PASSWORD }}
env:
BUILD_TOOLS_VERSION: "36.0.0"
- name: Deploy Bundle to Play Store
uses: r0adkll/upload-google-play@v1
with:
serviceAccountJsonPlainText: ${{ secrets.SERVICE_ACCOUNT_JSON }}
packageName: com.cwlarson.deviceid
track: production
releaseFiles: ${{steps.sign_bundle.outputs.signedReleaseFile}}
mappingFile: app/build/outputs/mapping/release/mapping.txt
whatsNewDirectory: .github/whatsnew