File tree Expand file tree Collapse file tree 3 files changed +99
-0
lines changed
Expand file tree Collapse file tree 3 files changed +99
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build PreProd APK
2+
3+ on :
4+ push :
5+ branches : ["**"]
6+ pull_request :
7+ branches : ["**"]
8+
9+ jobs :
10+ build-preprod :
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+ distribution : ' temurin'
21+ java-version : 17
22+
23+ - name : Grant permission to Gradle
24+ run : chmod +x ./gradlew
25+
26+ - name : Build PreProd APK
27+ run : ./gradlew assemblePreProd
28+
29+ - name : Upload PreProd APK
30+ uses : actions/upload-artifact@v4
31+ with :
32+ name : app-preprod-apk
33+ path : app/build/outputs/apk/preProd/*.apk
Original file line number Diff line number Diff line change 1+ name : Build Debug APK
2+
3+ on :
4+ push :
5+ branches : ["**"]
6+ pull_request :
7+ branches : ["**"]
8+
9+ jobs :
10+ build-debug :
11+ runs-on : ubuntu-latest
12+
13+ steps :
14+ - name : Checkout code
15+ uses : actions/checkout@v3
16+
17+ - name : Set up JDK 17
18+ uses : actions/setup-java@v3
19+ with :
20+ distribution : ' temurin'
21+ java-version : 17
22+
23+ - name : Grant permission to Gradle
24+ run : chmod +x ./gradlew
25+
26+ - name : Build Debug APK
27+ run : ./gradlew assembleDebug
28+
29+ - name : Upload Debug APK
30+ uses : actions/upload-artifact@v4
31+ with :
32+ name : app-debug-apk
33+ path : app/build/outputs/apk/debug/*.apk
Original file line number Diff line number Diff line change 1+ name : Build Release APK
2+
3+ on :
4+ push :
5+ branches : ["**"]
6+ pull_request :
7+ branches : ["**"]
8+
9+ jobs :
10+ build-release :
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+ distribution : ' temurin'
21+ java-version : 17
22+
23+ - name : Grant permission to Gradle
24+ run : chmod +x ./gradlew
25+
26+ - name : Build Release APK
27+ run : ./gradlew assembleRelease
28+
29+ - name : Upload Release APK
30+ uses : actions/upload-artifact@v4
31+ with :
32+ name : app-release-apk
33+ path : app/build/outputs/apk/release/*.apk
You can’t perform that action at this time.
0 commit comments