Skip to content

Commit 320911c

Browse files
authored
feat: Create android.yml
1 parent 42f8653 commit 320911c

File tree

1 file changed

+54
-0
lines changed

1 file changed

+54
-0
lines changed

.github/workflows/android.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Android CI
2+
3+
on:
4+
push:
5+
paths:
6+
- '.github/workflows/android.yml'
7+
- 'app/**'
8+
- 'gradle/**'
9+
- 'build.gradle'
10+
- 'gradle.properties'
11+
- 'gradlew'
12+
- 'gradlew.bat'
13+
- 'public-stable-ids.txt'
14+
- 'settings.gradle'
15+
pull_request:
16+
paths:
17+
- '.github/workflows/android.yml'
18+
- 'app/**'
19+
- 'gradle/**'
20+
- 'build.gradle'
21+
- 'gradle.properties'
22+
- 'gradlew'
23+
- 'gradlew.bat'
24+
- 'public-stable-ids.txt'
25+
- 'settings.gradle'
26+
workflow_dispatch:
27+
28+
jobs:
29+
build:
30+
name: Build release APK
31+
runs-on: ubuntu-latest
32+
steps:
33+
- uses: actions/checkout@v3
34+
35+
- name: Set up JDK 18
36+
uses: actions/setup-java@v3
37+
with:
38+
java-version: 18
39+
distribution: temurin
40+
cache: gradle
41+
42+
- name: Grant execute permissions for gradlew
43+
run: chmod +x gradlew
44+
45+
- name: Build release apk
46+
uses: gradle/gradle-build-action@v2
47+
with:
48+
arguments: assembleRelease
49+
50+
- name: Upload APK
51+
uses: actions/upload-artifact@v3
52+
with:
53+
name: apk-release
54+
path: app/build/outputs/apk/release

0 commit comments

Comments
 (0)