chavanshashank / action-release-debugapk

πŸ•· Build and release debug APK from your Android project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

action-release-debugapk

πŸ•· Build and release debug APK from your Android project

Warning ⚠

Add a target branch (eg. master) to build the APK to prevent infinite loop (releasing the APK on the release tag will trigger a rerun of the action).

Secrets

You'll need to provide this secret token to use the action (for publishing the APK). Enter these secrets in your Repo Settings > Secrets

Create that token as follows:

Using the default GITHUB_TOKEN provided universally will fail to authorize the user. This is the only workaround for now.

Environment Variables

You'll need to provide these environment variables to specify exactly what information is needed to build the APK.

  • APP_FOLDER: main folder to search for the apk. Most of the time, it's app
  • RELEASE_TITLE: title for release

Usage

To use the action simply add the following lines to your .github/workflows/android.yml and provide the required Secrets and Environment variables.

YML

name: Build & Publish Debug APK

on:
 push:
  branches:
   - master
   
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v1
    - name: set up JDK 1.8
      uses: actions/setup-java@v1
      with:
        java-version: 1.8
    - name: Make Gradle executable
      run: chmod +x ./gradlew
    - name: Build with Gradle
      run: ./gradlew build
    - name: Build Debug APK
      run: ./gradlew assembleDebug
    - name: Releasing using Hub
      uses: ShaunLWM/action-release-debugapk@master
      env:
       GITHUB_TOKEN: ${{ secrets.TOKEN }}
       APP_FOLDER: app
       RELEASE_TITLE: New Build

screenshot

Credits πŸ˜‡

Based off elgohr/Github-Hub-Action Based off ShaunLWM/action-release-debugapk

About

πŸ•· Build and release debug APK from your Android project


Languages

Language:Dockerfile 64.8%Language:Shell 35.2%