Skip to content

Commit b9eb3bd

Browse files
feat: Add GitHub Actions workflow for Android CI build
This workflow builds the Android APK on every push and pull request to the main branch.
1 parent d048bca commit b9eb3bd

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Android CI Build
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout code
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+
23+
- name: Make gradlew executable
24+
run: chmod +x gradlew
25+
26+
- name: Build with Gradle
27+
run: ./gradlew assembleRelease
28+
29+
- name: Upload APK
30+
uses: actions/upload-artifact@v4
31+
with:
32+
name: release-apk
33+
path: app/build/outputs/apk/release/app-release.apk

0 commit comments

Comments
 (0)