Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shaunlwm/action-release-debugapk
🕷 Build and release debug APK from your Android project
https://github.com/shaunlwm/action-release-debugapk
actions android android-app github-action github-actions
Last synced: 3 months ago
JSON representation
🕷 Build and release debug APK from your Android project
- Host: GitHub
- URL: https://github.com/shaunlwm/action-release-debugapk
- Owner: ShaunLWM
- Archived: true
- Created: 2019-09-20T09:34:44.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-12-27T03:55:31.000Z (almost 3 years ago)
- Last Synced: 2024-09-25T09:22:30.589Z (3 months ago)
- Topics: actions, android, android-app, github-action, github-actions
- Language: Dockerfile
- Size: 62.5 KB
- Stars: 66
- Watchers: 4
- Forks: 61
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# action-release-debugapk
![screenshot](screenshot.png)
🕷 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).## 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 APKon:
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
```### Secrets
You'll need to provide this secret token to use the action (for publishing the APK). Enter these secrets in your Settings > Secrets
* **TOKEN**: Create a new [access token](https://github.com/settings/tokens) with `repo` access.
I am unsure as to why using the default `GITHUB_TOKEN` provided universally will fail to authorize the user. This is the only workaround that I'd found.
### 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## Credits
Based off [elgohr/Github-Hub-Action](https://github.com/elgohr/Github-Hub-Action)