45 lines
796 B
YAML
45 lines
796 B
YAML
name: Build APK
|
|
|
|
env:
|
|
main_project_module: app
|
|
|
|
on:
|
|
|
|
push:
|
|
branches:
|
|
- '*'
|
|
- '!main'
|
|
pull_request:
|
|
merge_group:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Set Up JDK
|
|
uses: actions/setup-java@v4
|
|
with:
|
|
distribution: 'zulu'
|
|
java-version: '17'
|
|
cache: 'gradle'
|
|
|
|
- name: Change wrapper permissions
|
|
run: chmod +x ./gradlew
|
|
|
|
- name: Build gradle project
|
|
run: ./gradlew build
|
|
|
|
- name: Build APK
|
|
run: ./gradlew assembleDebug
|
|
|
|
- name: Upload APK
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: app
|
|
path: ${{ env.main_project_module }}/build/outputs/apk/debug/app-debug.apk
|