-
-
Notifications
You must be signed in to change notification settings - Fork 17
39 lines (32 loc) · 784 Bytes
/
Copy pathandroid.yml
File metadata and controls
39 lines (32 loc) · 784 Bytes
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
name: Android CI
on:
push:
branches: [ "main", "master" ]
pull_request:
branches: [ "main", "master" ]
jobs:
build:
name: Build APK
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: Build Debug APK
run: |
if [ ! -f gradlew ]; then
gradle wrapper
fi
chmod +x gradlew
./gradlew assembleDebug
- name: Upload APK
uses: actions/upload-artifact@v4
with:
name: MH-TextEditor-Debug
path: app/build/outputs/apk/debug/app-debug.apk