6abc4257be
ci.yml: flutter analyze + flutter test on every push, runs in ghcr.io/cirruslabs/flutter:stable container (includes Flutter, Dart, Java, Android SDK) build.yml: release APK build on main push, uploaded as workflow artifact (downloadable from Forgejo Actions UI, retained 30 days) No secrets required. Uses existing swarm-runner. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
28 lines
583 B
YAML
28 lines
583 B
YAML
name: Build APK
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
|
|
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
|