Skip to content

Commit d8ce98d

Browse files
authored
Add GitHub Actions workflow to upload APK artifacts
1 parent d2ab669 commit d8ce98d

1 file changed

Lines changed: 43 additions & 0 deletions

File tree

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Upload APK Artifact
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- develop
8+
pull_request:
9+
branches:
10+
- main
11+
- develop
12+
workflow_dispatch:
13+
14+
jobs:
15+
build:
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- name: Checkout code
20+
uses: actions/checkout@v4
21+
22+
- name: Set up JDK 17
23+
uses: actions/setup-java@v4
24+
with:
25+
java-version: '17'
26+
distribution: 'temurin'
27+
cache: gradle
28+
29+
- name: Grant execute permission for gradlew
30+
run: chmod +x gradlew
31+
32+
- name: Build APK
33+
run: ./gradlew assembleRelease
34+
35+
- name: Upload APK to artifacts
36+
uses: actions/upload-artifact@v4
37+
with:
38+
name: android-apk
39+
path: app/build/outputs/apk/release/*.apk
40+
retention-days: 30
41+
42+
- name: List APK files
43+
run: find app/build/outputs -name "*.apk" -type f

0 commit comments

Comments
 (0)