-
-
Notifications
You must be signed in to change notification settings - Fork 69
37 lines (36 loc) · 1.02 KB
/
build_android.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
name: Build Android
on:
workflow_dispatch:
inputs:
branch:
description: "The branch to build"
required: true
permissions:
users:
- hsjoberg
- niteshbalusu11
- djkazic
jobs:
build-android:
runs-on: ubuntu-latest
container: reactnativecommunity/react-native-android@sha256:4ff9c9f80da57c72284900fcfdbd079183e735684c62d7fafd3df50fdb895453
steps:
- uses: actions/checkout@v4
- name: Envinfo
run: npx envinfo
- name: Install dependencies
run: |
apt-get update
apt-get install -y curl unzip
- name: Build application
run: yarn build-unsigned-android
- name: Find APK path
run: |
apk_path=$(find . -type f -name "*.apk" | head -n 1)
echo "APK PATH: $apk_path"
echo "APK_PATH=$apk_path" >> $GITHUB_ENV
- name: Upload APK as artifact
uses: actions/upload-artifact@v4
with:
name: app-release-unsigned
path: ${{ env.APK_PATH }}