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:
workflow_dispatch:
inputs:
versionCode:
description: 'Version code'
required: true
jobs:
build:
@ -42,6 +46,12 @@ jobs:
flutter --version
flutter pub get
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
run: flutter build appbundle --release --flavor prod --dart-define cameraPreviewAspectRatio=2/3 -t lib/main_prod.dart
@ -56,4 +66,4 @@ jobs:
with:
name: m3_lightmeter_native_debug_symbols
path: |
build/app/intermediates/merged_native_libs/prodRelease/out/lib/
build/app/intermediates/merged_native_libs/prodRelease/out/lib/