Skip to content

Update android_ci.yml #3

Update android_ci.yml

Update android_ci.yml #3

Workflow file for this run

name: Android CI
on:
push:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: set up JDK 11
uses: actions/setup-java@v3
with:
java-version: 17
distribution: 'temurin'
cache: 'gradle'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build debug APK
uses: gradle/[email protected]
with:
arguments: assembleDebug
- name: Upload debug APK artifact
uses: actions/upload-artifact@v3
if: ${{ always() && github.ref == 'refs/heads/master' && steps.buildDebug.outcome == 'success' }}
with:
name: app-debug
path: app/build/outputs/apk/debug/app-debug.apk
if-no-files-found: error