86244cdfbc
CI skips on changes to platform dirs (ios, linux, macos, web, windows), docs, and README. Build skips on test-only changes since tests don't affect the release APK. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
35 lines
737 B
YAML
35 lines
737 B
YAML
name: Build APK
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
paths:
|
|
- "lib/**"
|
|
- "pubspec.yaml"
|
|
- "pubspec.lock"
|
|
- "android/**"
|
|
- "assets/**"
|
|
- ".forgejo/workflows/build.yml"
|
|
|
|
jobs:
|
|
build:
|
|
name: Build release APK
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: ghcr.io/cirruslabs/flutter:stable
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Install dependencies
|
|
run: flutter pub get
|
|
|
|
- name: Build release APK
|
|
run: flutter build apk --release
|
|
|
|
- name: Upload APK
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: fabledapp-${{ github.sha }}
|
|
path: build/app/outputs/flutter-apk/app-release.apk
|
|
retention-days: 30
|