From 6409ced67e878eab733e2c8f059593c9e7ffb505 Mon Sep 17 00:00:00 2001 From: Vadim <44135514+vodemn@users.noreply.github.com> Date: Thu, 23 Feb 2023 22:19:07 +0300 Subject: [PATCH] override version code --- .github/workflows/cd_prod.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cd_prod.yml b/.github/workflows/cd_prod.yml index c38caf0..5f3a814 100644 --- a/.github/workflows/cd_prod.yml +++ b/.github/workflows/cd_prod.yml @@ -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/ \ No newline at end of file + build/app/intermediates/merged_native_libs/prodRelease/out/lib/