-
Notifications
You must be signed in to change notification settings - Fork 213
51 lines (41 loc) · 1.25 KB
/
pull-request.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
49
50
51
name: Badge Magic CI
on:
pull_request:
branches: [ development ]
jobs:
build-android:
runs-on: ubuntu-latest
name: Android Build
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Grant permission for gradlew
run: chmod +x gradlew
- name: Syntax Check
run: ./gradlew spotlessCheck
- name: Build APK And Bundle with Gradle
run: |
./gradlew build --no-daemon --stacktrace
./gradlew bundleRelease
- name: Upload APK Debug
uses: actions/upload-artifact@v4
with:
name: APK Debug generated
path: android/build/outputs/apk/debug
- name: Upload APK Release
uses: actions/upload-artifact@v4
with:
name: APK Release generated
path: android/build/outputs/apk/release
- name: Upload AAB Release
uses: actions/upload-artifact@v4
with:
name: AAB Release generated
path: android/build/outputs/bundle/release