-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (32 loc) · 913 Bytes
/
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
name: Build Android and iOS
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
jobs:
build-android:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install npm dependencies
run: |
npm install
- name: Build Android Release
run: |
cd android && ./gradlew assembleRelease
build-ios:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v2
- name: Install npm dependencies
run: |
npm install
- name: Install pod dependencies
run: |
cd ios && pod install
- name: Build app
run: |
xcodebuild clean -workspace BatchStoreReactNative.xcworkspace -scheme BatchStoreReactNative
xcodebuild build -workspace BatchStoreReactNative.xcworkspace -scheme BatchStoreReactNative