-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (37 loc) · 1.01 KB
/
gradle.yml
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
35
36
37
38
39
40
41
42
43
44
45
name: Android CI
on:
push:
paths-ignore:
- '**.md'
pull_request:
workflow_dispatch:
jobs:
build:
name: Build APK
runs-on: ubuntu-latest
steps:
- name: Cancel previous runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- name: Clone repo
uses: actions/[email protected]
- name: Setup JDK 17
uses: actions/[email protected]
with:
distribution: temurin
java-version: 17
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build Debug APK
uses: gradle/[email protected]
with:
arguments: assembleDebug
cache-disabled: false
gradle-home-cache-cleanup: false
- name: Upload apk-debug
uses: actions/upload-artifact@v3
if: ${{ !github.head_ref }}
with:
name: esm-debug
path: app/build/outputs/apk/debug/app-debug.apk