This repository was archived by the owner on Sep 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 32
61 lines (53 loc) · 1.35 KB
/
android.yml
File metadata and controls
61 lines (53 loc) · 1.35 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# Original at https://github.com/Sketchware-Pro/Sketchware-Pro/blob/main/.github/workflows/android.yml
name: Android CI
on:
push:
paths:
- '.github/workflows/android.yml'
- 'app/**'
- 'build-logic/**'
- 'kotlinc/**'
- 'gradle/**'
- 'build.gradle'
- 'gradle.properties'
- 'gradlew'
- 'gradlew.bat'
- 'public-stable-ids.txt'
- 'settings.gradle'
pull_request:
paths:
- '.github/workflows/android.yml'
- 'app/**'
- 'build-logic/**'
- 'kotlinc/**'
- 'gradle/**'
- 'build.gradle'
- 'gradle.properties'
- 'gradlew'
- 'gradlew.bat'
- 'public-stable-ids.txt'
- 'settings.gradle'
workflow_dispatch:
jobs:
build:
name: Build release APK
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 18
uses: actions/setup-java@v3
with:
java-version: 18
distribution: temurin
cache: gradle
- name: Grant execute permissions for gradlew
run: chmod +x gradlew
- name: Build release apk
uses: gradle/gradle-build-action@v2
with:
arguments: assembleRelease
- name: Upload APK
uses: actions/upload-artifact@v3
with:
name: apk-release
path: app/build/outputs/apk/release