Skip to content

Build debug apk

Build debug apk #24

name: Build debug apk
on:
workflow_dispatch
jobs:
pre_build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11.0.14+101'
distribution: 'temurin'
cache: gradle
- name: Grant execute permissions for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew build
build_apk:
needs: [pre_build]
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v2
- name: Grant execute permissions for gradlew
run: chmod +x gradlew
- name: Build unsigned debug apk
run: ./gradlew assembleDebug
- name: Upload debug apk
uses: actions/upload-artifact@v3
with:
name: apk-debug
path: app/build/outputs/apk/debug