Update cd_dev.yml

This commit is contained in:
Vadim 2023-02-17 20:54:06 +03:00 committed by GitHub
parent 8627280186
commit 8e70ae22e5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,10 +6,16 @@
name: Build Dev APK name: Build Dev APK
on: on:
push:
tags:
- "v*.*.*"
workflow_dispatch: workflow_dispatch:
inputs:
flavor:
description: 'Flavor'
type: choice
required: true
options:
- dev
- prod
default: 'dev'
jobs: jobs:
build: build:
@ -47,7 +53,9 @@ jobs:
flutter pub run intl_utils:generate flutter pub run intl_utils:generate
- name: Build Apk - 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 - uses: actions/upload-artifact@v3
with: with: