Skip to content

Enhance GitHub Actions workflow and improve motion handling in Flutte… #3

Enhance GitHub Actions workflow and improve motion handling in Flutte…

Enhance GitHub Actions workflow and improve motion handling in Flutte… #3

Workflow file for this run

name: Release APKs
on:
push:
branches:
- main
jobs:
build-and-release:
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v4
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
channel: stable
- name: Install dependencies
run: flutter pub get
- name: Build split APKs
run: flutter build apk --split-per-abi --release
- name: Prepare release metadata
id: prep
run: |
TAG="boo-build-${GITHUB_RUN_NUMBER}"
NAME="Boo build ${GITHUB_RUN_NUMBER}"
echo "tag=$TAG" >> "$GITHUB_OUTPUT"
echo "name=$NAME" >> "$GITHUB_OUTPUT"
- name: Publish release with APK assets
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release create "${{ steps.prep.outputs.tag }}" \
build/app/outputs/flutter-apk/app-armeabi-v7a-release.apk \
build/app/outputs/flutter-apk/app-arm64-v8a-release.apk \
build/app/outputs/flutter-apk/app-x86_64-release.apk \
--title "${{ steps.prep.outputs.name }}" \
--generate-notes