Skip to content

Commit 2b7e2d3

Browse files
committed
Add Publish to Play Store GH Action
1 parent 7c6d744 commit 2b7e2d3

File tree

1 file changed

+31
-24
lines changed

1 file changed

+31
-24
lines changed

.github/workflows/gradle-build.yml

Lines changed: 31 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2,35 +2,42 @@ name: Android CI
22

33
on:
44
push:
5-
branches: [ "master" ]
5+
branches: ["master"]
66
pull_request:
7-
branches: [ "master" ]
7+
branches: ["master"]
88

99
jobs:
1010
build:
11-
1211
runs-on: ubuntu-latest
1312

1413
steps:
15-
- uses: actions/checkout@v3
16-
- name: set up JDK 11
17-
uses: actions/setup-java@v3
18-
with:
19-
java-version: '11'
20-
distribution: 'temurin'
21-
cache: gradle
14+
- uses: actions/checkout@v3
15+
- name: set up JDK 11
16+
uses: actions/setup-java@v3
17+
with:
18+
java-version: "11"
19+
distribution: "temurin"
20+
cache: gradle
21+
22+
- name: gradle wrapper
23+
run: gradle wrapper
24+
- name: Grant execute permission for gradlew
25+
run: chmod +x gradlew
26+
- name: Build with Gradle
27+
run: ./gradlew build
28+
- name: Build Release Bundle
29+
run: ./gradlew :app:bundleRelease
30+
31+
- name: Upload bundle artifact
32+
uses: actions/upload-artifact@v3
33+
with:
34+
name: HearThisAndroidReleaseBundle
35+
path: app/build/outputs/bundle/release/app-release.aab
2236

23-
- name: gradle wrapper
24-
run: gradle wrapper
25-
- name: Grant execute permission for gradlew
26-
run: chmod +x gradlew
27-
- name: Build with Gradle
28-
run: ./gradlew build
29-
- name: Build Release Bundle
30-
run: ./gradlew :app:bundleRelease
31-
32-
- name: Upload bundle artifact
33-
uses: actions/upload-artifact@v3
34-
with:
35-
name: HearThisAndroidReleaseBundle
36-
path: app/build/outputs/bundle/release/app-release.aab
37+
- name: Publish to Play Store Internal track
38+
uses: r0adkll/[email protected]
39+
with:
40+
serviceAccountJsonPlainText: ${{ secrets.SERVICE_ACCOUNT_JSON }}
41+
packageName: org.sil.hearthis
42+
releaseFiles: app/build/outputs/bundle/release/app-release.aab
43+
track: internal

0 commit comments

Comments
 (0)