Automated-build-android-app-with-github-action - CI/CD Automated Build Android App Bundle / APK / Signed With Github Action

Overview

Automated Build Android With Using Github Action

Generate APK / AAB Debug And Release Scan with Detekt pages-build-deployment

  • Project Github Action Script
  • Using Github Workflows
  • Private Repository Tested (Passed Build App bundle(s) and APK generated successfully)
  • Full Code For Github Action Workflows Click Here

Article Sources

How To Use Workflows

Step 1. Upload Your Project on Github

  • Project must be android studio project using gradle

Step 2. Create files github workflows

  • Create Files with name generate-apk-aab-debug-release.yml inside folder .github/workflows/
  • .github/workflows/generate-apk-aab-debug-release.yml this is position files

Step 3. Create Code

name: Generate APK / AAB Debug And Release

on:
  # Triggers the workflow on push or pull request events but only for default and protected branches
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]

jobs:
  build:

    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v1

      - name: Set Up JDK
        uses: actions/setup-java@v1
        with:
          java-version: 11

      - name: Change wrapper permissions
        run: chmod +x ./gradlew

      - name: Run tests
        run: ./gradlew test

      # Run Build Project
      - name: Build project
        run: ./gradlew build

      # Create APK Debug
      - name: Build apk debug project (APK)
        run: ./gradlew assembleDebug

      # Create APK Release
      - name: Build apk release project (APK)
        run: ./gradlew assemble

      # Create Bundle AAB Release
      # Noted for main module build [module-name]:bundleRelease
      - name: Build app bundle release (AAB)
        run: ./gradlew app:bundleRelease

      # Upload Artifact Build
      # Noted For Output [module-name]/build/outputs/
      - name: Upload debug build APK
        uses: actions/upload-artifact@v2
        with:
          name: App bundle(s) and APK(s) generated
          path: app/build/outputs/

Step 4. Automated Build on Actions tab on your github repository

ScreenShot

Step 5. Download Artifact

ScreenShot

Extras (Private Repository Succesfully Build Proven)

ScreenShot

Result Generated from Github Action

APK Debug

ScreenShot

APK Release

ScreenShot

AAB App Bundle

ScreenShot

Colaborator

Very open to anyone, I'll write your name under this, please contribute by sending an email to me

  • Mail To [email protected]
  • Subject : Github _ [Github-Username-Account] _ [Language] _ [Repository-Name]
  • Example : Github_amirisback_kotlin_admob-helper-implementation

Name Of Contribute

  • Muhammad Faisal Amir
  • Waiting List
  • Waiting List

Waiting for your contribute

Attention !!!

  • Please enjoy and don't forget fork and give a star
  • Don't Forget Follow My Github Account

ScreenShot

You might also like...
A cli tool that helps signing and zip aligning single or multiple Android application packages (APKs) with either debug or provided release certificates. It supports v1, v2 and v3 Android signing scheme has an embedded debug keystore and auto verifies after signing.
A tool to install components of the Android SDK into a Maven repository or repository manager to use with the Android Maven Plugin, Gradle and other tools.

Maven Android SDK Deployer Original author including numerous fixes and changes: Manfred Moser [email protected] at simpligility technologies i

proguard resource for Android by wechat team

AndResGuard Read this in other languages: English, 简体中文. AndResGuard is a tooling for reducing your apk size, it works like the ProGuard for Java sour

Command-line tool to count per-package methods in Android .dex files

dex-method-counts Simple tool to output per-package method counts in an Android DEX executable grouped by package, to aid in getting under the 65,536

View Inspection Toolbar for Android Development
View Inspection Toolbar for Android Development

View Inspector Plugin View inspection toolbar for android development. Features Boundary show outlines show margins show paddings Layer Scalpel featur

Make Android screenshots of scrollable screen content
Make Android screenshots of scrollable screen content

scrollscreenshot Make Android screenshots of scrollable screen content - brought to you by PGS Software SA This tool makes a number of screenshots, sc

🍼Debug Bottle is an Android runtime debug / develop tools written using kotlin language.
🍼Debug Bottle is an Android runtime debug / develop tools written using kotlin language.

🇨🇳 中文 / 🇯🇵 日本語 / 🇬🇧 English 🍼 Debug Bottle An Android debug / develop tools written using Kotlin language. All the features in Debug bottle are

[] Dissect layout traversals on Android
[] Dissect layout traversals on Android

Probe Dissect layout traversals on Android. Features Intercept View methods. onMeasure(int, int) onLayout(boolean, int, int, int, int) draw(Canvas) an

Android Library Finder
Android Library Finder

alfi Android Library Finder Search through thousands of android libraries that can help you scale your projects elegantly Usage Search for something a

Comments
  • error upload apk release

    error upload apk release

    I don't know if this is a bug or an error in my settings. everything is okay up to the stage of uploading the apk release.

    this error showed: Warning: Unexpected input(s) 'workflowpath', valid inputs are ['name', 'path', 'if-no-files-found', 'retention-days'] Run actions/upload-artifact@v2 Error: Input required and not supplied: path Screenshot_20220501_151057

    opened by AhmadNaruto 3
Releases(2.1.0)
  • 2.1.0(Jun 24, 2022)

    Automated Build Android With Using Github Action

    Android CI Download Generated APK AAB Upload Generated APK AAB Scan with Detekt pages-build-deployment

    • Available on Google Dev Library Click Here
    • Project Github Action Script YAML
    • Using Github Workflows
    • Automated Build AAB (release)
    • Automated Build APK (release and debug)
    • Download Artifact
    • Upload Artifact
    • Clear (Articfact naming)
    • Sample Naming : ${date_today} - ${repository_name} - ${playstore_name} - APK(s) release generated
    • Private Repository Tested (Passed Build App bundle(s) and APK generated successfully)
    • Full Code For Github Action Workflows Click Here

    Version Release

    This Is Latest Release

    $version_release = 2.1.0
    

    What's New??

    * Update Action Script *
    * Update Android Studio Latest Version *
    

    Article Sources

    Guide Sources (Github Action)

    How To Use Workflows

    Step 1. Upload Your Project on Github

    • Project must be android studio project using gradle

    Step 2. Create files github workflows

    • Create Files with name generate-apk-aab-debug-release.yml inside folder .github/workflows/
    • .github/workflows/generate-apk-aab-debug-release.yml this is position files

    Step 3. Create Code

    name: Android CI
    
    env:
      # The name of the main module repository
      main_project_module: app
    
      # The name of the Play Store
      playstore_name: Frogobox ID
    
    on:
      # Triggers the workflow on push or pull request events but only for default and protected branches
      push:
        branches: [ master ]
      pull_request:
        branches: [ master ]
    
      # Allows you to run this workflow manually from the Actions tab
      workflow_dispatch:
    
    jobs:
      build:
    
        runs-on: ubuntu-latest
    
        steps:
          - uses: actions/checkout@v1
    
          # Set Current Date As Env Variable
          - name: Set current date as env variable
            run: echo "date_today=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
    
          # Set Repository Name As Env Variable
          - name: Set repository name as env variable
            run: echo "repository_name=$(echo '${{ github.repository }}' | awk -F '/' '{print $2}')" >> $GITHUB_ENV
    
          - name: Set Up JDK
            uses: actions/setup-java@v1
            with:
              java-version: 11
    
          - name: Change wrapper permissions
            run: chmod +x ./gradlew
    
          # Run Tests Build
          - name: Run gradle tests
            run: ./gradlew test
    
          # Run Build Project
          - name: Build gradle project
            run: ./gradlew build
    
          # Create APK Debug
          - name: Build apk debug project (APK) - ${{ env.main_project_module }} module
            run: ./gradlew assembleDebug
    
          # Create APK Release
          - name: Build apk release project (APK) - ${{ env.main_project_module }} module
            run: ./gradlew assemble
    
          # Create Bundle AAB Release
          # Noted for main module build [main_project_module]:bundleRelease
          - name: Build app bundle release (AAB) - ${{ env.main_project_module }} module
            run: ./gradlew ${{ env.main_project_module }}:bundleRelease
    
          # Upload Artifact Build
          # Noted For Output [main_project_module]/build/outputs/apk/debug/
          - name: Upload APK Debug - ${{ env.repository_name }}
            uses: actions/upload-artifact@v2
            with:
              name: ${{ env.date_today }} - ${{ env.playstore_name }} - ${{ env.repository_name }} - APK(s) debug generated
              path: ${{ env.main_project_module }}/build/outputs/apk/debug/
    
          # Noted For Output [main_project_module]/build/outputs/apk/release/
          - name: Upload APK Release - ${{ env.repository_name }}
            uses: actions/upload-artifact@v2
            with:
              name: ${{ env.date_today }} - ${{ env.playstore_name }} - ${{ env.repository_name }} - APK(s) release generated
              path: ${{ env.main_project_module }}/build/outputs/apk/release/
    
          # Noted For Output [main_project_module]/build/outputs/bundle/release/
          - name: Upload AAB (App Bundle) Release - ${{ env.repository_name }}
            uses: actions/upload-artifact@v2
            with:
              name: ${{ env.date_today }} - ${{ env.playstore_name }} - ${{ env.repository_name }} - App bundle(s) AAB release generated
              path: ${{ env.main_project_module }}/build/outputs/bundle/release/
    

    Step 4. Automated Build on Actions tab on your github repository

    ScreenShot

    Step 5. Download Artifact

    ScreenShot

    Extras (Private Repository Succesfully Build Proven)

    ScreenShot

    Result Generated from Github Action

    APK(s) debug generated

    ScreenShot

    APK(s) release generated

    ScreenShot

    App bundle(s) release generated

    ScreenShot

    Colaborator

    Very open to anyone, I'll write your name under this, please contribute by sending an email to me

    • Mail To [email protected]
    • Subject : Github _ [Github-Username-Account] _ [Language] _ [Repository-Name]
    • Example : Github_amirisback_kotlin_admob-helper-implementation

    Name Of Contribute

    • Muhammad Faisal Amir
    • Waiting List
    • Waiting List

    Waiting for your contribute

    Attention !!!

    • Please enjoy and don't forget fork and give a star
    • Don't Forget Follow My Github Account

    ScreenShot

    Source code(tar.gz)
    Source code(zip)
  • 2.0.1(Apr 10, 2022)

    Automated Build Android With Using Github Action

    Android CI Scan with Detekt pages-build-deployment

    • Project Github Action Script YAML
    • Using Github Workflows
    • Automated Build AAB (release)
    • Automated Build APK (release and debug)
    • Clear (Articfact naming)
    • Sample Naming : ${githubusername/repositoryname} - APK(s) release generated ${playstore_name}
    • Private Repository Tested (Passed Build App bundle(s) and APK generated successfully)
    • Full Code For Github Action Workflows Click Here

    Version Release

    This Is Latest Release

    $version_release = 2.0.1
    

    What's New??

    * Update Action Script *
    * Update Android Studio Latest Version *
    

    Article Sources

    How To Use Workflows

    Step 1. Upload Your Project on Github

    • Project must be android studio project using gradle

    Step 2. Create files github workflows

    • Create Files with name generate-apk-aab-debug-release.yml inside folder .github/workflows/
    • .github/workflows/generate-apk-aab-debug-release.yml this is position files

    Step 3. Create Code

    name: Android CI
    
    env:
      # The name of the main module repository
      main_project_module: app
    
      # The name of the Play Store
      playstore_name: Frogobox ID
    
    on:
      # Triggers the workflow on push or pull request events but only for default and protected branches
      push:
        branches: [ master ]
      pull_request:
        branches: [ master ]
    
      workflow_dispatch:
        # The workflow will be dispatched to the default queue
        branches: [ master ]
    
    jobs:
      build:
    
        runs-on: ubuntu-latest
    
        steps:
          - uses: actions/checkout@v1
    
          # Set Current Date As Env Variable
          - name: Set current date as env variable
            run: echo "date_today=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
    
          # Set Repository Name As Env Variable
          - name: Set repository name as env variable
            run: echo "repository_name=$(echo '${{ github.repository }}' | awk -F '/' '{print $2}')" >> $GITHUB_ENV
    
          - name: Set Up JDK
            uses: actions/setup-java@v1
            with:
              java-version: 11
    
          - name: Change wrapper permissions
            run: chmod +x ./gradlew
    
          # Run Tests Build
          - name: Run gradle tests
            run: ./gradlew test
    
          # Run Build Project
          - name: Build gradle project
            run: ./gradlew build
    
          # Create APK Debug
          - name: Build apk debug project (APK) - ${{ env.main_project_module }} module
            run: ./gradlew assembleDebug
    
          # Create APK Release
          - name: Build apk release project (APK) - ${{ env.main_project_module }} module
            run: ./gradlew assemble
    
          # Create Bundle AAB Release
          # Noted for main module build [main_project_module]:bundleRelease
          - name: Build app bundle release (AAB) - ${{ env.main_project_module }} module
            run: ./gradlew ${{ env.main_project_module }}:bundleRelease
    
          # Upload Artifact Build
          # Noted For Output [main_project_module]/build/outputs/apk/debug/
          - name: Upload APK Debug - ${{ env.repository_name }}
            uses: actions/upload-artifact@v2
            with:
              name: ${{ env.date_today }} - ${{ env.playstore_name }} - ${{ env.repository_name }} - APK(s) debug generated
              path: ${{ env.main_project_module }}/build/outputs/apk/debug/
    
          # Noted For Output [main_project_module]/build/outputs/apk/release/
          - name: Upload APK Release - ${{ env.repository_name }}
            uses: actions/upload-artifact@v2
            with:
              name: ${{ env.date_today }} - ${{ env.playstore_name }} - ${{ env.repository_name }} - APK(s) release generated
              path: ${{ env.main_project_module }}/build/outputs/apk/release/
    
          # Noted For Output [main_project_module]/build/outputs/bundle/release/
          - name: Upload AAB (App Bundle) Release - ${{ env.repository_name }}
            uses: actions/upload-artifact@v2
            with:
              name: ${{ env.date_today }} - ${{ env.playstore_name }} - ${{ env.repository_name }} - App bundle(s) AAB release generated
              path: ${{ env.main_project_module }}/build/outputs/bundle/release/
    

    Step 4. Automated Build on Actions tab on your github repository

    ScreenShot

    Step 5. Download Artifact

    ScreenShot

    Extras (Private Repository Succesfully Build Proven)

    ScreenShot

    Result Generated from Github Action

    APK(s) debug generated

    ScreenShot

    APK(s) release generated

    ScreenShot

    App bundle(s) release generated

    ScreenShot

    Colaborator

    Very open to anyone, I'll write your name under this, please contribute by sending an email to me

    • Mail To [email protected]
    • Subject : Github _ [Github-Username-Account] _ [Language] _ [Repository-Name]
    • Example : Github_amirisback_kotlin_admob-helper-implementation

    Name Of Contribute

    • Muhammad Faisal Amir
    • Waiting List
    • Waiting List

    Waiting for your contribute

    Attention !!!

    • Please enjoy and don't forget fork and give a star
    • Don't Forget Follow My Github Account

    ScreenShot

    Source code(tar.gz)
    Source code(zip)
  • 1.0.0(Feb 11, 2022)

    Automated Build Android With Using Github Action

    Generate APK / AAB Debug And Release Scan with Detekt pages-build-deployment

    • Project Github Action Script
    • Using Github Workflows
    • Private Repository Tested (Passed Build App bundle(s) and APK generated successfully)
    • Full Code For Github Action Workflows Click Here

    Article Sources

    How To Use Workflows

    Step 1. Upload Your Project on Github

    • Project must be android studio project using gradle

    Step 2. Create files github workflows

    • Create Files with name generate-apk-aab-debug-release.yml inside folder .github/workflows/
    • .github/workflows/generate-apk-aab-debug-release.yml this is position files

    Step 3. Create Code

    name: Generate APK / AAB Debug And Release
    
    on:
      # Triggers the workflow on push or pull request events but only for default and protected branches
      push:
        branches: [ master ]
      pull_request:
        branches: [ master ]
    
    jobs:
      build:
    
        runs-on: ubuntu-latest
    
        steps:
          - uses: actions/checkout@v1
    
          - name: Set Up JDK
            uses: actions/setup-java@v1
            with:
              java-version: 11
    
          - name: Change wrapper permissions
            run: chmod +x ./gradlew
    
          - name: Run tests
            run: ./gradlew test
    
          # Run Build Project
          - name: Build project
            run: ./gradlew build
    
          # Create APK Debug
          - name: Build apk debug project (APK)
            run: ./gradlew assembleDebug
    
          # Create APK Release
          - name: Build apk release project (APK)
            run: ./gradlew assemble
    
          # Create Bundle AAB Release
          # [module-name]:bundleRelease
          - name: Build app bundle release (AAB)
            run: ./gradlew app:bundleRelease
    
          # Upload Artifact Build
          - name: Upload debug build APK
            uses: actions/upload-artifact@v2
            with:
              name: App bundle(s) and APK(s) generated
              path: app/build/outputs/
    

    Step 4. Automated Build on Actions tab on your github repository

    ScreenShot

    Step 5. Download Artifact

    ScreenShot

    Extras (Private Repository Succesfully Build Proven)

    ScreenShot

    Result Generated from Github Action

    APK Debug

    ScreenShot

    APK Release

    ScreenShot

    AAB App Bundle

    ScreenShot

    Colaborator

    Very open to anyone, I'll write your name under this, please contribute by sending an email to me

    • Mail To [email protected]
    • Subject : Github _ [Github-Username-Account] _ [Language] _ [Repository-Name]
    • Example : Github_amirisback_kotlin_admob-helper-implementation

    Name Of Contribute

    • Muhammad Faisal Amir
    • Waiting List
    • Waiting List

    Waiting for your contribute

    Attention !!!

    • Please enjoy and don't forget fork and give a star
    • Don't Forget Follow My Github Account

    ScreenShot

    Source code(tar.gz)
    Source code(zip)
Owner
Faisal Amir
Android Programmer - Wants to colaboration? Please sending an email to me!!!
Faisal Amir
A super fast build tool for Android, an alternative to Instant Run

Freeline Freeline is a super fast build tool for Android and an alternative to Instant Run. Caching reusable class files and resource indices, it enab

Alibaba 5.5k Jan 2, 2023
TaggerString is very light library which allows to build dynamic string resource in much more readable way.

TaggerString TaggerString is very light library which allows to build dynamic string resource in much more readable way. I guess that every Android de

polok 241 Jun 3, 2022
It makes a preview from an url, grabbing all the information such as title, relevant texts and images. This a version for Android of my web link preview https://github.com/LeonardoCardoso/Link-Preview

LeoCardz Link Preview for Android It makes a preview from an url, grabbing all the information such as title, relevant texts and images. Visual Exampl

Leonardo Cardoso 420 Nov 19, 2022
This Android app adds splash screen slides to make a great intro for an app.

IntroApp This Android app adds splash screen slides to make a great intro for an app. Short description Adding Welcome / Intro screens in your app is

Vaibhav Khulbe 16 Oct 1, 2020
This is a Android Studio/ IntelliJ IDEA plugin to localize your Android app, translate your string resources automactically.

#Android Localizationer This is a Android Studio/ IntelliJ IDEA plugin to localize your Android app, translate your string resources automactically. T

Wesley Lin 822 Dec 8, 2022
Combines tools for fast android app devlopment

Android - Rapid Test Driven Development Combine tools to generate most of the boilerplate code. Examples how to test different aspects of an android a

Nico Küchler 379 Nov 25, 2022
An android library that handles the closing of your app interactively.

Shutdown A library that handles the closing of your app interactively. Overview of Shutdown library Shutdown library handles the closing of your app i

Emmanuel Kehinde 56 Oct 5, 2022
Android Resource Manager application to manage and analysis your app resources with many features like image resize, Color, Dimens and code Analysis

Android Resource Manager application to manage and analysis your app resources with many features like image resize, Color, Dimens and code Analysis

Amr Hesham 26 Nov 16, 2022
A surgical debugging tool to uncover the layers under your app.

Scalpel DEPRECATED! Android Studio 4.0's layout inspector now includes a live-updating 3D view. Use it! A surgical debugging tool to uncover the layer

Jake Wharton 2.8k Jan 3, 2023
A tool to install components of the Android SDK into a Maven repository or repository manager to use with the Android Maven Plugin, Gradle and other tools.

Maven Android SDK Deployer Original author including numerous fixes and changes: Manfred Moser [email protected] at simpligility technologies i

simpligility 1.4k Dec 27, 2022