File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed
Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments