-
Notifications
You must be signed in to change notification settings - Fork 2
/
action.yml
41 lines (41 loc) · 1.06 KB
/
action.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
name: "React Native Android Build APK"
description: "This github action automatically builds the android apk under the artifact section"
author: "demir-utku"
on:
push:
branches:
- master
jobs:
# First Job
install-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install npm dependencies
run: |
npm install
# For testing
- name: Run tests
run: |
npm test
# Second Job
build-android:
needs: install-and-test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install npm dependencies
run: |
npm install
- name: Make Gradlew Executable
run: cd android && chmod +x ./gradlew
# Build Command
- name: Build Android Release
run: |
cd android && ./gradlew assembleRelease
# Upload to Artifact
- name: Upload Artifact
uses: actions/upload-artifact@v1
with:
name: app-release.apk
path: android/app/build/outputs/apk/release/