2024-04-28 17:44:20 -04:00
|
|
|
name: Build APK
|
2024-04-28 16:51:04 -04:00
|
|
|
|
|
|
|
env:
|
|
|
|
main_project_module: app
|
2024-04-28 16:24:34 -04:00
|
|
|
|
|
|
|
on:
|
2024-04-28 16:51:04 -04:00
|
|
|
|
|
|
|
push:
|
|
|
|
branches:
|
2024-04-28 22:03:53 -04:00
|
|
|
- '*'
|
|
|
|
- '!main'
|
2024-04-28 16:51:04 -04:00
|
|
|
|
|
|
|
workflow_dispatch:
|
2024-04-28 16:24:34 -04:00
|
|
|
|
|
|
|
jobs:
|
2024-04-28 16:51:04 -04:00
|
|
|
build:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: Set Up JDK
|
|
|
|
uses: actions/setup-java@v3
|
|
|
|
with:
|
2024-04-28 17:44:20 -04:00
|
|
|
distribution: 'zulu'
|
2024-04-28 16:51:04 -04:00
|
|
|
java-version: '17'
|
|
|
|
cache: 'gradle'
|
|
|
|
|
|
|
|
- name: Change wrapper permissions
|
|
|
|
run: chmod +x ./gradlew
|
|
|
|
|
|
|
|
- name: Build gradle project
|
|
|
|
run: ./gradlew build
|
|
|
|
|
2024-04-28 17:46:41 -04:00
|
|
|
- name: Build APK
|
2024-04-28 16:51:04 -04:00
|
|
|
run: ./gradlew assembleDebug
|
|
|
|
|
2024-04-28 17:46:41 -04:00
|
|
|
- name: Upload APK
|
2024-04-28 16:51:04 -04:00
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
with:
|
2024-04-28 17:44:20 -04:00
|
|
|
name: app
|
2024-04-30 08:43:15 -04:00
|
|
|
path: ${{ env.main_project_module }}/build/outputs/apk/debug/app-debug.apk
|