Skip to content

Milestone 4

Milestone 4 #4

Workflow file for this run

name: Test, Build and Release apk
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
build:
name: Build APK
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-java@v1
with:
java-version: "12.x"
- uses: subosito/flutter-action@v1
with:
flutter-version: "3.13.8"
- run: flutter pub get
- run: flutter test
- run: flutter build apk --debug --split-per-abi
- name: Push APK to Releases
uses: ncipollo/release-action@v1
with:
artifacts: "build/app/outputs/apk/debug/*.apk"
token: ${{ secrets.TOKEN }}