Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save subekti404dev/5875dd41ef733a1f54d0c87d0b341519 to your computer and use it in GitHub Desktop.
Save subekti404dev/5875dd41ef733a1f54d0c87d0b341519 to your computer and use it in GitHub Desktop.
Github Action Build React Native Android
name: Build Android
on:
push:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: yarn
- name: Build Android Release
run: cd android && ./gradlew assembleRelease
- name: Upload Artifact
uses: actions/upload-artifact@v1
with:
name: release
path: android/app/build/outputs/apk/release/app-release.apk
@YudhistiraA
Copy link

you need set up java

  - name: Install Java
    uses: actions/setup-java@v3
    with:
      java-version: 17
      distribution: adopt
      cache: gradle

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment