Repository navigation
62 lines (52 loc) · 1.69 KB
/
Copy pathmedium_article_code.yaml
File metadata and controls
62 lines (52 loc) · 1.69 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
name: Deploy Countries Pad
on:
workflow_dispatch:
jobs:
build:
name: Job 1 - Build Signed AAB
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup JDK 20
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '20'
- name: Bump Version Code
uses: chkfung/android-version-actions@v1.2.1
with:
gradlePath: 'app/build.gradle.kts'
versionCode: '${{ github.run_number }}'
versionName: '1.0.0'
- name: Build prodRelease
run: ./gradlew bundleRelease
- name: Sign AAB
id: sign
uses: r0adkll/sign-android-release@v1
with:
releaseDirectory: 'app/build/outputs/bundle/release'
signingKeyBase64: '${{ secrets.SERVICE_ACCOUNT_JSON }}'
- name: Upload app bundle as artifact
uses: actions/upload-artifact@v2
with:
name: 'app-bundle'
path: 'app/build/outputs/bundle/release/app-release.aab'
- name: Check Build status
run: echo "Build status report=${{ job.status }}"
deploy:
name: Job 2 - Deploy aab to playstore
needs: build
runs-on: ubuntu-latest
steps:
- name: Download app bundle from artifact
uses: actions/download-artifact@v2
with:
name: 'app-bundle'
- name: Publish to Play Store
uses: r0adkll/upload-google-play@v1
with:
serviceAccountJsonPlainText: '${{ secrets.SERVICE_ACCOUNT_JSON }}'
packageName: 'com.example.flutter_github_actions'
releaseFiles: '${{ github.workspace }}/app-release.aab'
track: 'internal'