Skip to content

Instantly share code, notes, and snippets.

@m-cakir
Created August 10, 2025 16:38
Show Gist options
  • Save m-cakir/be237b0b05fcc54d506e1b5fe92c909f to your computer and use it in GitHub Desktop.
Save m-cakir/be237b0b05fcc54d506e1b5fe92c909f to your computer and use it in GitHub Desktop.
Expo build apk ~ Github Action
# [root]/.github/workflows/android.yml
name: Android CI
on:
workflow_dispatch:
push:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '18'
- name: Run NPM Install
run: npm install
- name: Run Expo Android Prebuild
run: npx expo prebuild -p android
- name: Setup JDK
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
cache: gradle
- name: Grant execute permission for gradlew
run: chmod +x ./android/gradlew
- name: Build App
run: |
cd ./android
./gradlew assembleRelease
- name: DEBUG - List build outputs
run: find app -name "*.apk" -type f
- name: Upload APK artifact
uses: actions/[email protected]
with:
path: ./android/app/build/outputs/apk/**/*.apk
retention-days: 3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment