-
Notifications
You must be signed in to change notification settings - Fork 7
46 lines (36 loc) · 1.07 KB
/
android_build_dev.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
name: Build Android APK Dev
on:
workflow_dispatch:
# This will allow triggering the workflow manually using the GitHub UI
jobs:
build:
name: Build and Deploy
runs-on: ubuntu-latest
steps:
- name: Checkout Rainbow-React-Native-Samples
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '18.x'
- name: Use Java 17
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: '17'
distribution-type: 'jdk'
- name: Install dependencies
run: npm install
- name: Set Gradle Wrapper Permissions
run: cd android &&
chmod +x gradlew
- name: Build Android APK
run: pwd &&
ls &&
cd android &&
./gradlew assembleRelease
- name: Upload APK artifact
uses: actions/upload-artifact@v2
with:
name: app-release.apk
path: android/app/build/outputs/apk/release/