Build Android APK Dev #288
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/ | |