-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (38 loc) · 1.31 KB
/
build_android_release_aab.yml
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
name: Build Android Release AAB
on:
workflow_dispatch:
workflow_call:
jobs:
tests:
uses: ./.github/workflows/autotest_pr.yml
build:
name: Build Android AAB
needs: [tests]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Set Secret Properties
env:
LOCAL_PROPERTIES: ${{ secrets.LOCAL_PROPERTIES }}
run: echo "$LOCAL_PROPERTIES" > gradle.properties
working-directory: ./src/android/app
- name: Prepare release keystore
run: |
echo "${{ secrets.RELEASE_KEYSTORE }}" > dggg_key.keystore.asc
gpg -d --passphrase "${{ secrets.RELEASE_KEYSTORE_PASSPHRASE }}" --batch dggg_key.keystore.asc > dggg_key.keystore
working-directory: ./src/android/app
- name: Install dependencies
run: npm install
working-directory: ./src
- name: Build Android AAB
run: ./gradlew bundleRelease
working-directory: ./src/android
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: Release bundle
path: ./src/android/app/build/outputs/bundle/prodRelease/app-prod-release.aab