Skip to content

Commit 31a78d1

Browse files
Create generate-aab-file-free-playstore.yml
1 parent 4e134a9 commit 31a78d1

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Generate AAB File Free Playstore
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
ref:
7+
description: 'Reference branch, tag, commit id'
8+
required: true
9+
type: string
10+
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
steps:
16+
17+
- uses: actions/checkout@v4
18+
with:
19+
ref: ${{ inputs.ref }}
20+
21+
- name: Set up JDK 21
22+
uses: actions/setup-java@v4
23+
with:
24+
java-version: '21'
25+
distribution: 'jetbrains'
26+
27+
- name: Grant execute permission for gradlew
28+
run: chmod +x ./gradlew
29+
30+
- name: Build Release AAB
31+
id: buildRelease
32+
run: ./gradlew bundleFreePlaystoreRelease
33+
34+
- name: Sign AAB
35+
id: sign
36+
uses: r0adkll/sign-android-release@fix/bundle-signing
37+
with:
38+
releaseDirectory: app/build/outputs/bundle/freePlaystoreRelease
39+
signingKeyBase64: ${{ secrets.PLAY_STORE_UPLOAD_SIGNING_KEY }}
40+
alias: ${{ secrets.PLAY_STORE_UPLOAD_ALIAS }}
41+
keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }}
42+
keyPassword: ${{ secrets.KEY_PASSWORD }}
43+
44+
- name: 🚀 Upload APK to Artifacts 📱
45+
uses: actions/upload-artifact@v4
46+
with:
47+
name: app
48+
path: app/build/outputs/bundle/freePlaystoreRelease/*.aab
49+
retention-days: 3

0 commit comments

Comments
 (0)