-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (30 loc) · 850 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
name: Build
on:
push:
branches: [ master ]
pull_request:
branches: [ master]
concurrency:
group: build-${{ github.ref }}
cancel-in-progress: true
jobs:
build_android_app:
name: Build Android App
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v2
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'adopt'
cache: gradle
- name: Make gradle executable
run: chmod +x ./gradlew
- name: Get local.properties from secrets
run: echo "${{secrets.LOCAL_PROPERTIES }}" > $GITHUB_WORKSPACE/local.properties
- name: Build app
run: ./gradlew assemble --stacktrace