From c513e785f3e5c1a0509a70973ba825c4ea0d3d99 Mon Sep 17 00:00:00 2001 From: Shounak Mulay Date: Tue, 9 Apr 2024 15:31:01 +0530 Subject: [PATCH] Update CD workflow to build correct artifacts --- .github/workflows/cd.yml | 3 +++ scripts/set-flavor-and-apk-path-to-env.sh | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index a4823860..63cbf1b2 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -48,6 +48,9 @@ jobs: - name: Run build_runner run: derry build_runner + - name: Bump Version + run: scripts/bump-build-number.sh + - name: Decode Keystore id: decode_keystore uses: timheuer/base64-to-file@v1 diff --git a/scripts/set-flavor-and-apk-path-to-env.sh b/scripts/set-flavor-and-apk-path-to-env.sh index 386e7ee3..a9ecada6 100755 --- a/scripts/set-flavor-and-apk-path-to-env.sh +++ b/scripts/set-flavor-and-apk-path-to-env.sh @@ -14,7 +14,7 @@ CURRENT_BRANCH=$(git branch --show-current) -if [ "main" == "$CURRENT_BRANCH" ]; then +if [ "release" == "$CURRENT_BRANCH" ]; then echo "Current Branch is $CURRENT_BRANCH , proceeding with prod build" echo "FLAVOR_NAME=prod" >> "$GITHUB_ENV" echo "APK_PATH=build/app/outputs/flutter-apk/app-prod-release.apk" >> "$GITHUB_ENV"