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/