Skip to content

MaxAPCS building flutter #8

MaxAPCS building flutter

MaxAPCS building flutter #8

Workflow file for this run

name: Autobuild
run-name: ${{ github.actor }} building flutter
on:
push:
branches: ["main"]
jobs:
setup:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Download SDK
uses: subosito/flutter-action@v2
with:
channel: 'stable'
cache: true
cache-key: 'flutter-:os:-:version:-:hash:'
cache-path: ${{ runner.tool_cache }}/flutter/
- name: Install Dependencies
run: flutter pub get
build-apk:
needs: setup
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
cache: true
cache-key: 'flutter-:os:-:version:-:hash:'
cache-path: ${{ runner.tool_cache }}/flutter/
- name: Build APK
run: flutter build apk --split-per-abi
- name: Upload Artifact
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
prerelease: true
title: "Android Development Build"
files: build/app/outputs/flutter-apk/*.apk