Skip to content

Commit

Permalink
edit main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
khoabm committed Oct 6, 2023
1 parent 83b6aa5 commit 9245e03
Showing 1 changed file with 18 additions and 24 deletions.
42 changes: 18 additions & 24 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,28 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.



on:
push:
branches: [ "main" ]
tags:
- '*'
pull_request:
branches: [ "main" ]
branches: ['main']

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: '3.13.6'
- 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 }}
- uses: actions/checkout@v1
- uses: actions/setup-java@v1
with:
java-version: '12.x'
- uses: subosito/flutter-action@v1
with:
flutter-version: '3.13.6'
- 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 9245e03

Please sign in to comment.