mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
change codemagic.yaml
This commit is contained in:
+2
-15
@@ -5,11 +5,8 @@ workflows:
|
|||||||
environment:
|
environment:
|
||||||
android_signing:
|
android_signing:
|
||||||
- GabineteDigital
|
- GabineteDigital
|
||||||
groups:
|
|
||||||
- google_play
|
|
||||||
vars:
|
vars:
|
||||||
PACKAGE_NAME: "com.gpr.gabinetedigital"
|
PACKAGE_NAME: "com.gpr.gabinetedigital"
|
||||||
GOOGLE_PLAY_TRACK: alpha
|
|
||||||
node: latest
|
node: latest
|
||||||
scripts:
|
scripts:
|
||||||
- name: Install npm dependencies for Ionic Capacitor project
|
- name: Install npm dependencies for Ionic Capacitor project
|
||||||
@@ -27,20 +24,10 @@ workflows:
|
|||||||
ionic cap build android --prod
|
ionic cap build android --prod
|
||||||
- name: Build Android release
|
- name: Build Android release
|
||||||
script: |
|
script: |
|
||||||
LATEST_GOOGLE_PLAY_BUILD_NUMBER=$(google-play get-latest-build-number --package-name "$PACKAGE_NAME")
|
|
||||||
if [ -z $LATEST_GOOGLE_PLAY_BUILD_NUMBER ]; then
|
|
||||||
# fallback in case no build number was found from Google Play.
|
|
||||||
# Alternatively, you can `exit 1` to fail the build
|
|
||||||
# BUILD_NUMBER is a Codemagic built-in variable tracking the number
|
|
||||||
# of times this workflow has been built
|
|
||||||
UPDATED_BUILD_NUMBER=$BUILD_NUMBER
|
|
||||||
else
|
|
||||||
UPDATED_BUILD_NUMBER=$(($LATEST_GOOGLE_PLAY_BUILD_NUMBER + 1))
|
|
||||||
fi
|
|
||||||
cd android
|
cd android
|
||||||
./gradlew bundleRelease \
|
./gradlew bundleRelease \
|
||||||
-PversionCode=$UPDATED_BUILD_NUMBER \
|
-PversionCode=1 \
|
||||||
-PversionName=1.0.$UPDATED_BUILD_NUMBER
|
-PversionName=1.0.0
|
||||||
artifacts:
|
artifacts:
|
||||||
- android/app/build/outputs/**/*.apk
|
- android/app/build/outputs/**/*.apk
|
||||||
publishing:
|
publishing:
|
||||||
|
|||||||
Reference in New Issue
Block a user