From b61bab2e5da15d5b5eecde53ac69bd40b6212ace Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fernando=20Mart=C3=ADn=20Garc=C3=ADa=20Del=20Angel?= Date: Mon, 17 Feb 2020 18:47:13 -0600 Subject: [PATCH] Created main.yaml Added CI/CD to Flutter --- .github/workflows/main.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..5886f54 --- /dev/null +++ b/.github/workflows/main.yml @@ -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 }}