Skip to content

Refactor Android CI workflow for clarity and consistency #2

Refactor Android CI workflow for clarity and consistency

Refactor Android CI workflow for clarity and consistency #2

Workflow file for this run

name: Android CI
on:
push:
branches: [ "master", "main" ]
pull_request:
branches: [ "master", "main" ]
workflow_dispatch: # This adds the manual "Run" button to the Actions tab
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
cache: gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build Debug APK
run: ./gradlew assembleDebug
- name: Upload APK
uses: actions/upload-artifact@v4
with:
name: app-debug-apk
# This path is standard for most Android projects
path: app/build/outputs/apk/debug/*.apk
retention-days: 7