forked from Path-Check/safeplaces-dct-app
-
Notifications
You must be signed in to change notification settings - Fork 4
36 lines (29 loc) · 966 Bytes
/
Copy pathbuild_android.yml
File metadata and controls
36 lines (29 loc) · 966 Bytes
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
name: Build Android
on:
pull_request:
branches: [develop]
push:
branches: [develop]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Cache node_modules/
uses: actions/cache@v1
with:
path: node_modules
key: ${{ runner.OS }}-yarn-cache-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.OS }}-yarn-cache-
- run: yarn --frozen-lockfile
- name: Bundle JS
run: npx react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res/
- name: Build APK
run: ./gradlew assembleDebug
working-directory: ./android
- name: Upload APK
uses: actions/upload-artifact@v1
with:
name: Debug APK
path: android/app/build/outputs/apk/debug/app-debug.apk