-
Notifications
You must be signed in to change notification settings - Fork 25
46 lines (39 loc) · 1.1 KB
/
android-build.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
name: "Build Android app"
on:
push:
branches:
- feat/cd-workflow
# can add push and pull_request here
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install Java
uses: actions/setup-java@v2
with:
java-version: "18"
distribution: "adopt"
cache: "gradle"
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v1
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '20'
- name: Run Yarn Install
run: |
cd ./packages/app-mobile/
npm i -g corepack
yarn install
- name: Build application
run: |
cd ./packages/app-mobile/android
./gradlew assembleDebug
- name: Upload application
uses: actions/upload-artifact@v2
with:
name: app
path: ./packages/app-mobile/android/app/build/outputs/apk/debug/app-debug.apk
retention-days: 3