Skip to content

Commit

Permalink
Added main.yaml
Browse files Browse the repository at this point in the history
To use within Github Actions for CI/CD
  • Loading branch information
martin-headspace committed Feb 17, 2020
1 parent 7b9c0d5 commit 0c87de3
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions eight_queens/.github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
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.7.8+hotfix.4'
- 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 0c87de3

Please sign in to comment.