Skip to content

Commit 1bcc33b

Browse files
authored
Update and rename upload-apk-artifact.yml to android.yml
1 parent d8ce98d commit 1bcc33b

2 files changed

Lines changed: 39 additions & 43 deletions

File tree

.github/workflows/android.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Android CI
2+
3+
on:
4+
push:
5+
branches: [ "main", "master" ]
6+
pull_request:
7+
branches: [ "main", "master" ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- name: set up JDK 17
18+
uses: actions/setup-java@v4
19+
with:
20+
java-version: '17'
21+
distribution: 'temurin'
22+
cache: gradle
23+
24+
- name: Grant execute permission for gradlew
25+
run: chmod +x gradlew || true
26+
27+
- name: Build with Gradle
28+
run: |
29+
if [ -f gradlew ]; then
30+
./gradlew assembleDebug
31+
else
32+
gradle assembleDebug
33+
fi
34+
35+
- name: Upload APK
36+
uses: actions/upload-artifact@v4
37+
with:
38+
name: app-debug
39+
path: app/build/outputs/apk/debug/app-debug.apk

.github/workflows/upload-apk-artifact.yml

Lines changed: 0 additions & 43 deletions
This file was deleted.

0 commit comments

Comments
 (0)