Skip to content

Commit edc9794

Browse files
committed
update: workflow github action
1 parent e6fe466 commit edc9794

File tree

4 files changed

+20
-7
lines changed

4 files changed

+20
-7
lines changed

.github/workflows/android-ci-generate-apk-aab-download.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@ env:
88
playstore_name: Frogobox ID
99

1010
on:
11+
12+
# Triggers the workflow on push or pull request events but only for default and protected branches
13+
push:
14+
branches: [ master ]
15+
pull_request:
16+
branches: [ master ]
17+
1118
# Allows you to run this workflow manually from the Actions tab
1219
workflow_dispatch:
1320

@@ -17,7 +24,7 @@ jobs:
1724
runs-on: ubuntu-latest
1825

1926
steps:
20-
- uses: actions/checkout@v1
27+
- uses: actions/checkout@v2
2128

2229
# Set Current Date As Env Variable
2330
- name: Set current date as env variable
@@ -59,21 +66,21 @@ jobs:
5966
# Download Artifact Build
6067
# Noted For Output [main_project_module]/build/outputs/apk/debug/
6168
- name: Download APK Debug - ${{ env.repository_name }}
62-
uses: actions/download-artifact@v2
69+
uses: actions/download-artifact@v3
6370
with:
6471
name: ${{ env.date_today }} - ${{ env.playstore_name }} - ${{ env.repository_name }} - APK(s) debug generated
6572
path: ${{ env.main_project_module }}/build/outputs/apk/debug/
6673

6774
# Noted For Output [main_project_module]/build/outputs/apk/release/
6875
- name: Download APK Release - ${{ env.repository_name }}
69-
uses: actions/download-artifact@v2
76+
uses: actions/download-artifact@v3
7077
with:
7178
name: ${{ env.date_today }} - ${{ env.playstore_name }} - ${{ env.repository_name }} - APK(s) release generated
7279
path: ${{ env.main_project_module }}/build/outputs/apk/release/
7380

7481
# Noted For Output [main_project_module]/build/outputs/bundle/release/
7582
- name: Download AAB (App Bundle) Release - ${{ env.repository_name }}
76-
uses: actions/download-artifact@v2
83+
uses: actions/download-artifact@v3
7784
with:
7885
name: ${{ env.date_today }} - ${{ env.playstore_name }} - ${{ env.repository_name }} - App bundle(s) AAB release generated
7986
path: ${{ env.main_project_module }}/build/outputs/bundle/release/

.github/workflows/android-ci-generate-apk-aab-upload.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
runs-on: ubuntu-latest
1818

1919
steps:
20-
- uses: actions/checkout@v1
20+
- uses: actions/checkout@v2
2121

2222
# Set Current Date As Env Variable
2323
- name: Set current date as env variable

.github/workflows/android-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
runs-on: ubuntu-latest
2424

2525
steps:
26-
- uses: actions/checkout@v1
26+
- uses: actions/checkout@v2
2727

2828
# Set Current Date As Env Variable
2929
- name: Set current date as env variable

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
</p>
55

66
## Automated Build Android With Using Github Action
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)
7+
[![Android CI](https://github.com/amirisback/automated-build-android-app-with-github-action/actions/workflows/android-ci.yml/badge.svg)](https://github.com/amirisback/automated-build-android-app-with-github-action/actions/workflows/android-ci.yml)
8+
[![Download Generated APK AAB](https://github.com/amirisback/automated-build-android-app-with-github-action/actions/workflows/android-ci-generate-apk-aab-download.yml/badge.svg)](https://github.com/amirisback/automated-build-android-app-with-github-action/actions/workflows/android-ci-generate-apk-aab-download.yml)
9+
[![Upload Generated APK AAB](https://github.com/amirisback/automated-build-android-app-with-github-action/actions/workflows/android-ci-generate-apk-aab-upload.yml/badge.svg)](https://github.com/amirisback/automated-build-android-app-with-github-action/actions/workflows/android-ci-generate-apk-aab-upload.yml)
810
[![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)
911
[![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)
1012
- Available on Google Dev Library [Click Here](https://devlibrary.withgoogle.com/products/android/repos/amirisback-automated-build-android-app-with-github-action)
@@ -33,6 +35,10 @@ What's New??
3335
- [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)
3436
- [How to Use GitHub Actions to Automate Android App Development](https://www.freecodecamp.org/news/use-github-actions-to-automate-android-development/)
3537

38+
## Guide Sources (Github Action)
39+
- [Download Artifact From Github Action](https://github.com/actions/download-artifact)
40+
- [Upload Artifact From Github Action](https://github.com/actions/upload-artifact)
41+
3642
## How To Use Workflows
3743

3844
### Step 1. Upload Your Project on Github

0 commit comments

Comments
 (0)