Build & deploy Android app #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish Release APK | |
on: | |
push: | |
tags: [ "*" ] | |
workflow_dispatch: | |
inputs: | |
tag_name: | |
description: "Tag name to build and publish APK" | |
required: true | |
default: "latest" | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '11' | |
distribution: 'temurin' | |
cache: gradle | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Build Release APK | |
run: ./gradlew assembleRelease | |
- name: Publish APK | |
uses: alsrb968/action-release-apk@master | |
env: | |
GITHUB_TOKEN: ${{ secrets.TOKEN }} | |
APP_FOLDER: app | |
with: | |
tag_name: ${{ github.event.inputs.tag_name }} |