From 0c87de3035bb9a59683875d8f36b87cb278a6c2c Mon Sep 17 00:00:00 2001 From: Fernando Martin Garcia Del Angel Date: Sun, 16 Feb 2020 22:15:08 -0600 Subject: [PATCH] Added main.yaml To use within Github Actions for CI/CD --- eight_queens/.github/workflows/main.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 eight_queens/.github/workflows/main.yml diff --git a/eight_queens/.github/workflows/main.yml b/eight_queens/.github/workflows/main.yml new file mode 100644 index 0000000..3eb8cc1 --- /dev/null +++ b/eight_queens/.github/workflows/main.yml @@ -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 }} \ No newline at end of file