forked from wouterds/react-native-tv-example
-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (44 loc) · 1.71 KB
/
code-review.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
47
48
49
50
51
52
53
54
55
56
name: Build Android .apk
on:
push:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
# runs-on: ubuntu-22.04 # this is the Ubuntu version that this was created on
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install Java
uses: actions/setup-java@v3
with:
java-version: "11"
distribution: "adopt"
cache: "gradle"
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v1
# Node, Yarn and NPM
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '16'
- name: Run Yarn Install & node dependencies
run: yarn install && yarn
- name: android (TV) debug
run: yarn android
- name: android (TV) release
run: yarn android:release
- name: List the .apks compiled
run: ls ./android/app/build/outputs/apk/release/ -hal
- name: Rename the .apk to the tag version
run: mv ./android/app/build/outputs/apk/release/app-universal-release.apk ./android/app/build/outputs/apk/release/app_name_${{ github.ref_name }}.apk
# Creating and Uploading the releases
- name: Create Release and Uploading Files
uses: softprops/action-gh-release@v1
with:
files: |
android/app/build/outputs/apk/release/app-arm64-v8a-release.apk
android/app/build/outputs/apk/release/app-armeabi-v7a-release.apk
android/app/build/outputs/apk/release/app-x86_64-release.apk
android/app/build/outputs/apk/release/app-x86-release.apk
android/app/build/outputs/apk/release/app_name_${{ github.ref_name }}.apk