Skip to content

Commit de794e3

Browse files
committed
Release v2.0.0
1 parent e2048d7 commit de794e3

File tree

2 files changed

+65
-30
lines changed

2 files changed

+65
-30
lines changed

.github/workflows/generate-apk-aab-debug-release.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ name: Android CI
22

33
env:
44
# The name of the main module repository
5-
MAIN_PROJECT_MODULE: app
5+
main_project_module: app
66

77
# The name of the Play Store
8-
PLAY_STORE_NAME: Frogobox ID
8+
playstore_name: Frogobox ID
99

1010
on:
1111
# Triggers the workflow on push or pull request events but only for default and protected branches
@@ -42,36 +42,36 @@ jobs:
4242
run: ./gradlew build
4343

4444
# Create APK Debug
45-
- name: Build apk debug project (APK) Module >> ${{ env.MAIN_PROJECT_MODULE }}
45+
- name: Build apk debug project (APK) Module >> ${{ env.main_project_module }}
4646
run: ./gradlew assembleDebug
4747

4848
# Create APK Release
49-
- name: Build apk release project (APK) Module >> ${{ env.MAIN_PROJECT_MODULE }}
49+
- name: Build apk release project (APK) Module >> ${{ env.main_project_module }}
5050
run: ./gradlew assemble
5151

5252
# Create Bundle AAB Release
5353
# Noted for main module build [MAIN-APP-MODULE]:bundleRelease
54-
- name: Build app bundle release (AAB) Module >> ${{ env.MAIN_PROJECT_MODULE }}
55-
run: ./gradlew ${{ env.MAIN_PROJECT_MODULE }}:bundleRelease
54+
- name: Build app bundle release (AAB) Module >> ${{ env.main_project_module }}
55+
run: ./gradlew ${{ env.main_project_module }}:bundleRelease
5656

5757
# Upload Artifact Build
5858
# Noted For Output [MAIN-APP-MODULE]/build/outputs/
59-
- name: Upload APK Debug ${{ env.PLAY_STORE_NAME }}
59+
- name: Upload APK Debug ${{ env.playstore_name }}
6060
uses: actions/upload-artifact@v2
6161
with:
62-
name: APK(s) debug generated ${{ env.PLAY_STORE_NAME }}
63-
path: ${{ env.MAIN_PROJECT_MODULE }}/build/outputs/apk/debug/
62+
name: ${{ github.repository }} | APK(s) debug generated ${{ env.playstore_name }}
63+
path: ${{ env.main_project_module }}/build/outputs/apk/debug/
6464

6565
# Noted For Output [MAIN-APP-MODULE]/build/outputs/
66-
- name: Upload APK Release ${{ env.PLAY_STORE_NAME }}
66+
- name: Upload APK Release ${{ env.playstore_name }}
6767
uses: actions/upload-artifact@v2
6868
with:
69-
name: APK(s) release generated ${{ env.PLAY_STORE_NAME }}
70-
path: ${{ env.MAIN_PROJECT_MODULE }}/build/outputs/apk/release/
69+
name: ${{ github.repository }} | APK(s) release generated ${{ env.playstore_name }}
70+
path: ${{ env.main_project_module }}/build/outputs/apk/release/
7171

7272
# Noted For Output [MAIN-APP-MODULE]/build/outputs/
73-
- name: Upload AAB (App Bundle) Release ${{ env.PLAY_STORE_NAME }}
73+
- name: Upload AAB (App Bundle) Release ${{ env.playstore_name }}
7474
uses: actions/upload-artifact@v2
7575
with:
76-
name: App bundle(s) release generated ${{ env.PLAY_STORE_NAME }}
77-
path: ${{ env.MAIN_PROJECT_MODULE }}/build/outputs/bundle/release/
76+
name: ${{ github.repository }} | App bundle(s) release generated ${{ env.playstore_name }}
77+
path: ${{ env.main_project_module }}/build/outputs/bundle/release/

README.md

Lines changed: 50 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,24 @@
44
</p>
55

66
## Automated Build Android With Using Github Action
7-
[![Generate APK / AAB Debug And Release](https://github.com/amirisback/automated-build-android-app-with-github-action/actions/workflows/generate-apk-aab-debug-release.yml/badge.svg)](https://github.com/amirisback/automated-build-android-app-with-github-action/actions/workflows/generate-apk-aab-debug-release.yml)
7+
[![Android CI](https://github.com/amirisback/automated-build-android-app-with-github-action/actions/workflows/generate-apk-aab-debug-release.yml/badge.svg)](https://github.com/amirisback/automated-build-android-app-with-github-action/actions/workflows/generate-apk-aab-debug-release.yml)
88
[![Scan with Detekt](https://github.com/amirisback/automated-build-android-app-with-github-action/actions/workflows/detekt-analysis.yml/badge.svg)](https://github.com/amirisback/automated-build-android-app-with-github-action/actions/workflows/detekt-analysis.yml)
99
[![pages-build-deployment](https://github.com/amirisback/automated-build-android-app-with-github-action/actions/workflows/pages/pages-build-deployment/badge.svg)](https://github.com/amirisback/automated-build-android-app-with-github-action/actions/workflows/pages/pages-build-deployment)
1010
- Project Github Action Script
1111
- Using Github Workflows
1212
- Private Repository Tested (Passed Build App bundle(s) and APK generated successfully)
1313
- Full Code For Github Action Workflows [Click Here](https://github.com/amirisback/automated-build-android-app-with-github-action/blob/master/.github/workflows/generate-apk-aab-debug-release.yml)
1414

15+
## Version Release
16+
This Is Latest Release
17+
18+
$version_release = 2.0.0
19+
20+
What's New??
21+
22+
* Update Action Script *
23+
* Update Android Studio Latest Version *
24+
1525
## Article Sources
1626
- [How To Securely Build and Sign Your Android App With GitHub Actions](https://proandroiddev.com/how-to-securely-build-and-sign-your-android-app-with-github-actions-ad5323452ce)
1727
- [How to Use GitHub Actions to Automate Android App Development](https://www.freecodecamp.org/news/use-github-actions-to-automate-android-development/)
@@ -27,7 +37,14 @@
2737

2838
### Step 3. Create Code
2939
```yml
30-
name: Generate APK / AAB Debug And Release
40+
name: Android CI
41+
42+
env:
43+
# The name of the main module repository
44+
main_project_module: app
45+
46+
# The name of the Play Store
47+
playstore_name: Frogobox ID
3148

3249
on:
3350
# Triggers the workflow on push or pull request events but only for default and protected branches
@@ -36,6 +53,10 @@ on:
3653
pull_request:
3754
branches: [ master ]
3855

56+
workflow_dispatch:
57+
# The workflow will be dispatched to the default queue
58+
branches: [ master ]
59+
3960
jobs:
4061
build:
4162

@@ -60,25 +81,39 @@ jobs:
6081
run: ./gradlew build
6182

6283
# Create APK Debug
63-
- name: Build apk debug project (APK)
84+
- name: Build apk debug project (APK) Module >> ${{ env.main_project_module }}
6485
run: ./gradlew assembleDebug
6586

6687
# Create APK Release
67-
- name: Build apk release project (APK)
88+
- name: Build apk release project (APK) Module >> ${{ env.main_project_module }}
6889
run: ./gradlew assemble
6990

7091
# Create Bundle AAB Release
71-
# Noted for main module build [module-name]:bundleRelease
72-
- name: Build app bundle release (AAB)
73-
run: ./gradlew app:bundleRelease
92+
# Noted for main module build [MAIN-APP-MODULE]:bundleRelease
93+
- name: Build app bundle release (AAB) Module >> ${{ env.main_project_module }}
94+
run: ./gradlew ${{ env.main_project_module }}:bundleRelease
7495

7596
# Upload Artifact Build
76-
# Noted For Output [module-name]/build/outputs/
77-
- name: Upload debug build APK
97+
# Noted For Output [MAIN-APP-MODULE]/build/outputs/
98+
- name: Upload APK Debug ${{ env.playstore_name }}
99+
uses: actions/upload-artifact@v2
100+
with:
101+
name: ${{ github.repository }} | APK(s) debug generated ${{ env.playstore_name }}
102+
path: ${{ env.main_project_module }}/build/outputs/apk/debug/
103+
104+
# Noted For Output [MAIN-APP-MODULE]/build/outputs/
105+
- name: Upload APK Release ${{ env.playstore_name }}
106+
uses: actions/upload-artifact@v2
107+
with:
108+
name: ${{ github.repository }} | APK(s) release generated ${{ env.playstore_name }}
109+
path: ${{ env.main_project_module }}/build/outputs/apk/release/
110+
111+
# Noted For Output [MAIN-APP-MODULE]/build/outputs/
112+
- name: Upload AAB (App Bundle) Release ${{ env.playstore_name }}
78113
uses: actions/upload-artifact@v2
79114
with:
80-
name: App bundle(s) and APK(s) generated
81-
path: app/build/outputs/
115+
name: ${{ github.repository }} | App bundle(s) release generated ${{ env.playstore_name }}
116+
path: ${{ env.main_project_module }}/build/outputs/bundle/release/
82117
```
83118
84119
### Step 4. Automated Build on Actions tab on your github repository
@@ -92,13 +127,13 @@ jobs:
92127
93128
## Result Generated from Github Action
94129
95-
### APK Debug
130+
### APK(s) debug generated
96131
![ScreenShot](https://raw.githubusercontent.com/amirisback/automated-build-android-app-with-github-action/master/docs/image/ss-apk-debug.png?raw=true)
97132
98-
### APK Release
133+
### APK(s) release generated
99134
![ScreenShot](https://raw.githubusercontent.com/amirisback/automated-build-android-app-with-github-action/master/docs/image/ss-apk-release.png?raw=true)
100135
101-
### AAB App Bundle
136+
### App bundle(s) release generated
102137
![ScreenShot](https://raw.githubusercontent.com/amirisback/automated-build-android-app-with-github-action/master/docs/image/ss-bundle.png?raw=true)
103138
104139
## Colaborator
@@ -119,4 +154,4 @@ Waiting for your contribute
119154
- Please enjoy and don't forget fork and give a star
120155
- Don't Forget Follow My Github Account
121156
122-
![ScreenShot](https://raw.githubusercontent.com/amirisback/automated-build-android-app-with-github-action/master/docs/image/mad_score.png?raw=true)
157+
![ScreenShot](https://raw.githubusercontent.com/amirisback/automated-build-android-app-with-github-action/master/docs/image/mad_score.png?raw=true)

0 commit comments

Comments
 (0)