Skip to content

Build Android APK Dev #275

Build Android APK Dev

Build Android APK Dev #275

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/