diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e2b2121..3424bdb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -36,14 +36,14 @@ jobs: run: | cd app file='VERSION' - fileData=`cat $file` + fileData=$(cat $file) IFS='.' read -a versionValue <<< "$fileData" - buildNumber=$(expr `expr ${versionValue[0]} \* 1000000` + `expr ${versionValue[1]} \* 10000` + ${CI_PIPELINE_IID}) + buildNumber=$(( ${versionValue[0]} * 1000000 + ${versionValue[1]} * 10000 + CI_PIPELINE_IID )) IFS='' buildName="${versionValue[0]}.${versionValue[1]}.$CI_PIPELINE_IID" + echo "Generating android build $buildName $buildNumber" - flutter build apk --flavor prod --release --build-number=$buildNumber --build-name=$buildName + flutter build apk --release --build-number=$buildNumber --build-name=$buildName mv build/app/outputs/apk/release/*.apk . cd .. -