Add workflow to build debug apk

This commit is contained in:
Jean-Baptiste 2024-08-25 14:11:59 +02:00 committed by Jean-BaptisteC
parent 5f762c4a80
commit 44f905a7e0

28
.github/workflows/main.yml vendored Normal file
View file

@ -0,0 +1,28 @@
---
name: Build debug APK
on:
push:
branches:
- develop
pull_request:
branches:
- develop
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v4
- name: Setup Java JDK
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 17
- name: Generate debug build
run: ./gradlew assembleDebug
- name: Upload APK
uses: actions/upload-artifact@v4
with:
name: app_debug
path: app/build/outputs/apk/dev/debug/app-dev-debug.apk