-
Notifications
You must be signed in to change notification settings - Fork 1
34 lines (32 loc) · 862 Bytes
/
android.yml
File metadata and controls
34 lines (32 loc) · 862 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Build APK
on:
push:
branches:
- '**' # matches every branch
- '!badges' # excludes master
paths:
- android_app/**
- .github/workflows/android.yml
jobs:
apk:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
cache: gradle
- name: Build with Gradle
run: |
cd android_app
chmod +x gradlew
./gradlew assembleDebug --stacktrace
- name: Upload a Build Artifact
uses: actions/upload-artifact@v3.1.2
with:
# Artifact name
name: latest-apk
# A file, directory or wildcard pattern that describes what to upload
path: android_app/app/build/outputs/apk/debug/app-debug.apk