Skip to content

Instantly share code, notes, and snippets.

@Zfinix
Last active December 2, 2020 16:36
Show Gist options
  • Select an option

  • Save Zfinix/71a58bcebe9d03d213db3e7bc58e5aeb to your computer and use it in GitHub Desktop.

Select an option

Save Zfinix/71a58bcebe9d03d213db3e7bc58e5aeb to your computer and use it in GitHub Desktop.
name: CI
on:
push:
tags:
- '*'
jobs:
test:
name: Flutter Tests
runs-on: macOS-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-java@v1
with:
java-version: '12.x'
- uses: subosito/[email protected]
with:
flutter-version: '1.24.0-10.2.pre'
channel: dev
- run: flutter doctor
- run: flutter pub get
# - run: flutter test
- run: flutter build apk --release -v
# now release the just created build
- name: Create a Release APK
uses: ncipollo/release-action@v1
with:
artifacts: "build/app/outputs/apk/release/*.apk"
token: ${{ secrets.TOKEN }}
commit: master
tag: "latest"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment