Skip to content

Build Android

Build Android #109

Workflow file for this run

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 }}