Skip to content

Commit

Permalink
Created main.yaml
Browse files Browse the repository at this point in the history
Added CI/CD to Flutter
  • Loading branch information
Fernando Martín García Del Angel authored Feb 18, 2020
1 parent 84e4717 commit b61bab2
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
on: push
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.12.x'
channel: 'stable'
- run: flutter pub get
- run: flutter test
- run: flutter build apk --debug --split-per-abi
- name: Create a Release APK
uses: ncipollo/release-action@v1
with:
artifacts: "build/app/outputs/apk/debug/*.apk"
token: ${{ secrets.TOKEN }}

0 comments on commit b61bab2

Please sign in to comment.