Skip to content

Create android.yml

Create android.yml #5

Workflow file for this run

name: Android Build
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: '11'
- name: Grant execute permission for gradlew
run: chmod +x ./gradlew
- name: Download Gradle dependencies
run: ./gradlew build --no-daemon
- name: Build APK
run: ./gradlew assembleDebug
- name: Upload APK
uses: actions/upload-artifact@v3
with:
name: app-debug
path: app/build/outputs/apk/debug/*.apk