From 92f95acd792ef5bee5559e3aca4afa904b9f0e24 Mon Sep 17 00:00:00 2001 From: aravindhippili Date: Tue, 29 Jun 2021 11:16:39 +0530 Subject: [PATCH] ci/cd --- .github/workflows/main2.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/main2.yml diff --git a/.github/workflows/main2.yml b/.github/workflows/main2.yml new file mode 100644 index 0000000..dae881f --- /dev/null +++ b/.github/workflows/main2.yml @@ -0,0 +1,24 @@ +on: + push: + tags: + - v* +name: 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: '2.2.2' + - run: flutter pub get + - run: flutter build apk -t lib/main_prod.dart --split-per-abi + - name: Release apk + uses: ncipollo/release-actions@v1 + with: + artifacts: "build/app/outputs/apk/release/*.apk" + token: ${{ secrets.E_COM }} \ No newline at end of file