-
Notifications
You must be signed in to change notification settings - Fork 68
43 lines (36 loc) · 922 Bytes
/
build.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
name: Test Build
on:
push:
branches: [ "master" ]
paths-ignore:
- 'metadata/**'
pull_request:
branches: [ "master" ]
paths-ignore:
- 'metadata/**'
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 }}
- uses: actions/checkout@v3
- name: Setup jdk-17
uses: actions/setup-java@main
with:
java-version: 17
distribution: 'adopt'
cache: gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Assemble Debug
run: ./gradlew assembleDebug
- name: Upload APK
uses: actions/upload-artifact@v3
with:
name: apk-debug
path: app/build/outputs/apk/debug/**.apk