Skip to content

Commit c0ba3d8

Browse files
committed
github workflows un-signed release
1 parent 2360491 commit c0ba3d8

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
2+
name: Build Android APK
3+
4+
on:
5+
push:
6+
branches: [ main, develop ]
7+
pull_request:
8+
branches: [ main ]
9+
workflow_dispatch: # Allows manual trigger
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v4
18+
19+
- name: Set up JDK 17
20+
uses: actions/setup-java@v4
21+
with:
22+
java-version: '17'
23+
distribution: 'temurin'
24+
25+
- name: Setup Gradle
26+
uses: gradle/gradle-build-action@v2
27+
28+
- name: Make gradlew executable
29+
run: chmod +x ./gradlew
30+
31+
- name: Build unsigned release APK
32+
run: ./gradlew assembleRelease
33+
34+
- name: Upload APK artifact
35+
uses: actions/upload-artifact@v4
36+
with:
37+
name: unsigned-release-apk
38+
path: |
39+
**/build/outputs/apk/release/*.apk
40+
retention-days: 30

0 commit comments

Comments
 (0)