-
Notifications
You must be signed in to change notification settings - Fork 89
54 lines (46 loc) · 1.55 KB
/
deploy-to-playstore.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
name: Deploy to Playstore
on:
push:
branches: [ 'releases/**' ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '17'
- name: Combine strings
uses: michpohl/[email protected]
with:
first: 1.0
second: ${{ github.run_number }}
separator: '.'
output-var-name: 'VERSION_NAME_STRING'
- name: Bump version
uses: chkfung/[email protected]
with:
gradlePath: app/build.gradle.kts
versionCode: ${{github.run_number}}
versionName: VERSION_NAME_STRING
- name: Assemble Release Bundle
run: ./gradlew bundleRelease
- name: Sign Release
uses: r0adkll/sign-android-release@v1
with:
releaseDirectory: app/build/outputs/bundle/release
signingKeyBase64: ${{ secrets.PLAYSTORE_SIGNING_KEY }}
alias: ${{ secrets.KEY_ALIAS }}
keyStorePassword: ${{ secrets.KEYSTORE_PASSWORD }}
keyPassword: ${{ secrets.KEY_PASSWORD }}
- name: Deploy to Production
uses: r0adkll/[email protected]
with:
serviceAccountJsonPlainText: ${{ secrets.GOOGLE_SERVICES_JSON }}
packageName: ke.droidcon.kotlin
releaseFiles: app/build/outputs/bundle/release/app-release.aab
track: production
whatsNewDirectory: whatsnew/
status: completed