From fdd00a2646cc8569410c365d48fdabc63139ec4a Mon Sep 17 00:00:00 2001 From: Vadim <44135514+vodemn@users.noreply.github.com> Date: Wed, 15 Feb 2023 13:59:10 +0300 Subject: [PATCH 1/3] Create cd.yml (#32) --- .github/workflows/cd.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/cd.yml diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml new file mode 100644 index 0000000..4c04ec6 --- /dev/null +++ b/.github/workflows/cd.yml @@ -0,0 +1,36 @@ +# 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. + +name: Build Apk + +on: + push: + tags: + - "v*.*.*" + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - uses: subosito/flutter-action@v2 + with: + channel: "stable" + + - name: Check flutter version + run: flutter --version + + - name: Install dependencies + run: flutter pub get + + - name: Generate intl + run: flutter pub run intl_utils:generate + + - name: Analyze project source + run: flutter analyze + + - name: Build Apk + run: flutter build apk --release From 37c20c5f94744a59103cff27524de1d88c5b1628 Mon Sep 17 00:00:00 2001 From: Vadim <44135514+vodemn@users.noreply.github.com> Date: Wed, 15 Feb 2023 14:22:35 +0300 Subject: [PATCH 2/3] Fix flutter build --- .github/workflows/cd.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 4c04ec6..45c6ec1 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -33,4 +33,4 @@ jobs: run: flutter analyze - name: Build Apk - run: flutter build apk --release + run: flutter build apk --flavor dev --dart-define cameraPreviewAspectRatio=2/3 -t lib/main_dev.dart From 1372a75d3b4a41601d47302ac06b7ed007e8b52b Mon Sep 17 00:00:00 2001 From: Vadim <44135514+vodemn@users.noreply.github.com> Date: Wed, 15 Feb 2023 14:28:44 +0300 Subject: [PATCH 3/3] Added cd branch to cd.yml --- .github/workflows/cd.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 45c6ec1..4664968 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -7,6 +7,7 @@ name: Build Apk on: push: + branches: [ "cd" ] tags: - "v*.*.*"