override version code

This commit is contained in:
Vadim 2023-02-23 22:19:07 +03:00 committed by GitHub
parent 25bf02bcda
commit 6409ced67e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,6 +7,10 @@ name: Build Prod App Bundle
on: on:
workflow_dispatch: workflow_dispatch:
inputs:
versionCode:
description: 'Version code'
required: true
jobs: jobs:
build: build:
@ -43,6 +47,12 @@ jobs:
flutter pub get flutter pub get
flutter pub run intl_utils:generate flutter pub run intl_utils:generate
- name: Bump version
uses: chkfung/android-version-actions@v1.2.1
with:
gradlePath: app/build.gradle # or app/build.gradle.kts
versionCode: ${{ github.event.inputs.versionCode }}
- name: Build appbundle - name: Build appbundle
run: flutter build appbundle --release --flavor prod --dart-define cameraPreviewAspectRatio=2/3 -t lib/main_prod.dart run: flutter build appbundle --release --flavor prod --dart-define cameraPreviewAspectRatio=2/3 -t lib/main_prod.dart