-
-
Notifications
You must be signed in to change notification settings - Fork 24
49 lines (40 loc) · 1.25 KB
/
generate-aab-file.yml
File metadata and controls
49 lines (40 loc) · 1.25 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
name: Generate AAB File
on:
workflow_dispatch:
inputs:
ref:
description: 'Reference branch, tag, commit id'
required: true
type: string
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ inputs.ref }}
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'jetbrains'
- name: Grant execute permission for gradlew
run: chmod +x ./gradlew
- name: Build Release AAB
id: buildRelease
run: ./gradlew bundleProRelease
- name: Sign AAB
id: sign
uses: r0adkll/sign-android-release@fix/bundle-signing
with:
releaseDirectory: app/build/outputs/bundle/proRelease
signingKeyBase64: ${{ secrets.PLAY_STORE_UPLOAD_SIGNING_KEY }}
alias: ${{ secrets.PLAY_STORE_UPLOAD_ALIAS }}
keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }}
keyPassword: ${{ secrets.KEY_PASSWORD }}
- name: 🚀 Upload APK to Artifacts 📱
uses: actions/upload-artifact@v4
with:
name: app
path: app/build/outputs/bundle/proRelease/*.aab
retention-days: 3