-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (42 loc) · 1.32 KB
/
debugAppBundle.yaml
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
name: Build debug appbundle
on:
pull_request:
branches:
- main
jobs:
releaseAppBundle:
name: Build debug appbundle
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: "17"
distribution: "temurin"
cache: gradle
- name: Create firebase config file
run: |
echo "${{ secrets.GOOGLE_SERVICE_FILE }}" | base64 -d > app/google-services.json
if [ -n "${{ secrets.UAT_CONFIG_FILE }}" ]; then
mkdir -p app/config
echo "${{ secrets.UAT_CONFIG_FILE }}" | base64 -d > app/config/uat.properties
fi
- name: Grant execute permission for gradlew and build
env:
GITHUB_USER: ${GITHUB_ACTOR}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
chmod +x ./gradlew
./gradlew bundleDebug
./gradlew assembleDebug
- name: Upload appbundle artifact
uses: actions/upload-artifact@v4
with:
name: debug-bundle
path: "app/build/outputs/bundle/debug/app-debug.aab"
- name: Upload apk artifact
uses: actions/upload-artifact@v4
with:
name: debug-apk
path: "app/build/outputs/apk/debug/app-debug.apk"