mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2025-05-19 22:50:40 +00:00
override version code
This commit is contained in:
parent
25bf02bcda
commit
6409ced67e
1 changed files with 11 additions and 1 deletions
12
.github/workflows/cd_prod.yml
vendored
12
.github/workflows/cd_prod.yml
vendored
|
@ -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/
|
||||
|
|
Loading…
Reference in a new issue