Skip to content

Create build_and_release_android.yml #1

Create build_and_release_android.yml

Create build_and_release_android.yml #1

name: Build And Release Android
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2.12.0
with:
flutter-version: '3.3.0-97.0.dev'
channel: 'dev'
- name: Setup Java JDK
uses: actions/setup-java@v4.0.0
with:
java-version: '21'
distribution: 'zulu'
- run: dart pub get
- run: flutter build apk --release
- name: Release
uses: ncipollo/release-action@v1.13.0
with:
artifacts: "build/app/outputs/flutter-apk/app-release.apk"
token: ${{ secrets.YOUR_GITHUB_TOKEN }}