Skip to content

Merge pull request #6 from tiagodread/remove-tasks #3

Merge pull request #6 from tiagodread/remove-tasks

Merge pull request #6 from tiagodread/remove-tasks #3

Workflow file for this run

name: Release APK
on:
push:
branches:
- main
env:
FLUTTER_VERSION: 3.22.3
jobs:
build:
name: Build APK
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup JDK
uses: actions/setup-java@v3
with:
java-version: 11
distribution: "zulu"
- name: Install Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: ${{ env.FLUTTER_VERSION }}
channel: "stable"
architecture: x64
- name: Install Dependencies
run: flutter pub get
- name: Run tests
run: flutter test
- name: Build APP
run: flutter build apk --release
- name: Push APK to Releases
uses: ncipollo/release-action@v1
with:
artifacts: "build/app/outputs/flutter-apk/*.apk"