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"