Skip to content

Instantly share code, notes, and snippets.

@james2doyle
Created January 21, 2024 20:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save james2doyle/44bc0b160fd248f99cba17119fdcdd6c to your computer and use it in GitHub Desktop.
Save james2doyle/44bc0b160fd248f99cba17119fdcdd6c to your computer and use it in GitHub Desktop.
A Github action that builds Dart/Flutter APKs for Android as artifacts that can be downloaded after the build completes
name: Build and Release APK
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
channel: 'master'
- run: flutter pub get
- run: flutter build apk --profile
- name: Upload APK
uses: actions/upload-artifact@v2
with:
name: profile-apk
path: build/app/outputs/flutter-apk/app-profile.apk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment