Skip to content

Commit e1f748f

Browse files
authored
Update android.yml
1 parent eb8b0bf commit e1f748f

1 file changed

Lines changed: 21 additions & 17 deletions

File tree

.github/workflows/android.yml

Lines changed: 21 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,34 @@
1-
name: Android CI
1+
name: Build APK
22

33
on:
44
push:
5-
branches: [ "main" ]
5+
branches: [ main ]
66
pull_request:
7-
branches: [ "main" ]
7+
branches: [ main ]
88

99
jobs:
1010
build:
1111

1212
runs-on: ubuntu-latest
1313

1414
steps:
15-
- uses: actions/checkout@v4
16-
- name: set up JDK 11
17-
uses: actions/setup-java@v4
15+
- name: Checkout source
16+
uses: actions/checkout@v3
17+
18+
- name: Set up JDK
19+
uses: actions/setup-java@v3
1820
with:
19-
java-version: '11'
2021
distribution: 'temurin'
21-
cache: gradle
22-
23-
- name: Grant execute permission for gradlew
24-
run: |
25-
26-
chmod +x gradlew
27-
- name: Build with Gradle
28-
run: |
29-
30-
./gradlew build
22+
java-version: '17'
23+
24+
- name: Make gradlew executable
25+
run: chmod +x ./gradlew
26+
27+
- name: Build APK
28+
run: ./gradlew assembleDebug
29+
30+
- name: Upload APK
31+
uses: actions/upload-artifact@v3
32+
with:
33+
name: apk
34+
path: app/build/outputs/apk/debug/app-debug.apk

0 commit comments

Comments
 (0)