From 8e70ae22e5d928bb106e31da6269a423404505bc Mon Sep 17 00:00:00 2001 From: Vadim <44135514+vodemn@users.noreply.github.com> Date: Fri, 17 Feb 2023 20:54:06 +0300 Subject: [PATCH] Update cd_dev.yml --- .github/workflows/cd_dev.yml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/cd_dev.yml b/.github/workflows/cd_dev.yml index 60f19e3..2b55e41 100644 --- a/.github/workflows/cd_dev.yml +++ b/.github/workflows/cd_dev.yml @@ -6,10 +6,16 @@ name: Build Dev APK on: - push: - tags: - - "v*.*.*" workflow_dispatch: + inputs: + flavor: + description: 'Flavor' + type: choice + required: true + options: + - dev + - prod + default: 'dev' jobs: build: @@ -47,7 +53,9 @@ jobs: flutter pub run intl_utils:generate - name: Build Apk - run: flutter build apk --release --flavor dev --dart-define cameraPreviewAspectRatio=2/3 -t lib/main_dev.dart + env: + FLAVOR: ${{ github.event.inputs.flavor }} + run: flutter build apk --release --flavor $FLAVOR --dart-define cameraPreviewAspectRatio=2/3 -t lib/main_$FLAVOR.dart - uses: actions/upload-artifact@v3 with: