Skip to content

add build workflow

add build workflow #28

Workflow file for this run

name: Build APK
on:
pull_request:
branches:
- development
push:
branches:
- development
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: app
steps:
- name: Set up Repository
uses: actions/checkout@v4
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: "3.27.2"
channel: "stable"
- name: Get dependencies
run: flutter pub get
- name: Initialize Reflectable
run: dart run build_runner build
- name: Create app_config_local.dart from template
run: cp lib/app_config_local.template lib/app_config_local.dart
- name: Ensure Build Script is Executable
run: chmod +x build.sh
- name: Run Build Script
run: |
./build.sh --build --local
echo "Build script exited with code $?"
- name: List build output files
run: ls -R build/app/outputs/flutter-apk
- name: Upload APK Artifact
uses: actions/upload-artifact@v4
with:
name: app-apk
path: build/app/outputs/flutter-apk/app-debug.apk