Skip to content

Instantly share code, notes, and snippets.

@m-cakir
Created August 10, 2025 16:38
Show Gist options
  • Select an option

  • Save m-cakir/be237b0b05fcc54d506e1b5fe92c909f to your computer and use it in GitHub Desktop.

Select an option

Save m-cakir/be237b0b05fcc54d506e1b5fe92c909f to your computer and use it in GitHub Desktop.

Revisions

  1. m-cakir revised this gist Aug 10, 2025. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions android.yml
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,5 @@
    # [root]/.github/workflows/android.yml

    name: Android CI

    on:
  2. m-cakir created this gist Aug 10, 2025.
    49 changes: 49 additions & 0 deletions android.yml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,49 @@
    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/upload-artifact@v4.6.2
    with:
    path: ./android/app/build/outputs/apk/**/*.apk
    retention-days: 3