Skip to content

Build Android apk

Build Android apk #8

Workflow file for this run

name: Build Android apk
on:
[workflow_dispatch]
permissions:
contents: read
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'adopt'
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
flutter-version: '3.10.x'
- run: curl https://textual.ru/presets.db -o assets/presets.db
- run: echo '{}' > lib/l10n/app_zh.arb
- run: flutter clean
- run: flutter pub get
- run: flutter test
- run: flutter build apk
- name: Rename APK
run: mv build/app/outputs/flutter-apk/app-release.apk build/app/outputs/flutter-apk/EveryDoor-$(git log -n 1 --format='%h').apk
- name: Archive APK
uses: actions/upload-artifact@v3
with:
name: everydoor-apk
path: build/app/outputs/flutter-apk/EveryDoor*.apk
retention-days: 90