Skip to content

Commit 86f4063

Browse files
committed
Merge branch 'master' of https://github.com/PanktiSP13/Github-workflow-CI-CD-demo into developer
2 parents 353fff9 + 4d9ce84 commit 86f4063

File tree

3 files changed

+99
-0
lines changed

3 files changed

+99
-0
lines changed

.github/workflows/buid-preprod.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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

.github/workflows/build-debug.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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

0 commit comments

Comments
 (0)