-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (46 loc) · 1.41 KB
/
cd.yaml
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
name: CD
on:
workflow_run:
workflows: ["ci"]
types:
- completed
jobs:
bundle:
name: Build Release AAB
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: '17'
- name: Build Release AAB
run: ./gradlew bundleRelease
- name: Sign app bundle
uses: r0adkll/upload-google-play@v1
id: sign_app
with:
serviceAccountJson: ${{ secrets.SERVICE_ACCOUNT_JSON }}
packageName: com.bulletapps.candypricer
releaseFiles: app/build/outputs/bundle/release/app-release.aab
- name: Upload Signed AAB
uses: actions/upload-artifact@v2
with:
name: app-bundle
path: app/build/outputs/bundle/release/app-release.aab
deploy:
name: Deploy release AAB on Playstore
needs: [bundle]
runs-on: ubuntu-latest
steps:
- name: Create service_account.json
run: echo '${{ secrets.SERVICE_ACCOUNT_JSON }}' > service_account.json
- name: Deploy to Play Store
uses: r0adkll/upload-google-play@v1
with:
serviceAccountJson: service_account.json
packageName: ${{ github.event.inputs.app_id }}
releaseFiles: app/build/outputs/bundle/release/*.aab
track: production