Skip to content

Instantly share code, notes, and snippets.

@xantiagoma
Created July 27, 2020 15:43
Show Gist options
  • Save xantiagoma/104a89f0679ef85ff70b94c17ad56def to your computer and use it in GitHub Desktop.
Save xantiagoma/104a89f0679ef85ff70b94c17ad56def to your computer and use it in GitHub Desktop.
Deploy Flutter App Github Actions (Android)
on:
push:
tags:
- v*
name: Test, Build and Release apk
jobs:
build:
name: Build APK
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-java@v1
with:
java-version: '12.x'
- uses: subosito/flutter-action@v1
with:
flutter-version: '1.17.0'
- run: flutter pub get
- run: flutter build apk -t lib/main_prod.dart --split-per-abi
- run: flutter build ios --release --no-codesign
- name: Create a Release APK
uses: ncipollo/release-action@v1
with:
artifacts: "build/app/outputs/apk/release/*.apk"
token: ${{ secrets.TOKEN }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment