Skip to content

Android Debug APK

Android Debug APK #479

name: Android quick debug build
on:
workflow_dispatch:
inputs:
versionName:
description: 'User-facing release version name'
required: true
default: "1.0.0"
versionCode:
description: 'versionCode or build number'
required: true
default: '1'
jobs:
build:
# This job will run on ubuntu virtual machine
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 11
cache: 'gradle'
# Setup the flutter environment.
- uses: subosito/flutter-action@v2
with:
flutter-version: '3.7.5'
channel: 'stable'
cache: true
# Get flutter dependencies.
- run: flutter pub get
- run: flutter --version
# Build apk.
- run: flutter build apk --debug --build-number=${{ github.event.inputs.versionCode }} --build-name=${{ github.event.inputs.versionName }}
# Upload generated apk to the artifacts.
- uses: actions/upload-artifact@v3
with:
name: release-aab
path: build/app/outputs/flutter-apk/app-debug.apk