1
0
Fork 0
VendroidEnhanced/.github/workflows/android.yml

44 lines
766 B
YAML
Raw Normal View History

2024-04-28 17:44:20 -04:00
name: Build APK
env:
main_project_module: app
2024-04-28 16:24:34 -04:00
on:
push:
branches:
2024-04-28 22:03:53 -04:00
- '*'
- '!main'
workflow_dispatch:
2024-04-28 16:24:34 -04:00
jobs:
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'
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
run: ./gradlew assembleDebug
2024-04-28 17:46:41 -04:00
- name: Upload APK
uses: actions/upload-artifact@v3
with:
2024-04-28 17:44:20 -04:00
name: app
path: ${{ env.main_project_module }}/build/outputs/apk/debug/app-debug.apk