From 874489b40227b2ce302e6be840e536e82847842f Mon Sep 17 00:00:00 2001 From: Hailey Date: Wed, 21 Feb 2024 13:54:31 -0800 Subject: Use EAS managed build number, run build/submit on GH Actions (#2841) * use eas version code * test * try sync * try sync * use eas to manage the version code * apply build numbers to dist * test script * set this to production or now * revert to schedule * testing on 1.69 * autosubmit * autosubmit, remove cheat * finished!!!!! try again try again try again try again add same for android maybe now omg wow i messed that up? once again once again again error? add caching add caching try again again again again try again again again try again again try again try this a different way another test testing this again * hack * write environment variables * ready to go * final test * Revert "final test" This reverts commit 6580c5c0974db25a3704b683673c41471a6ad0cf. --- scripts/useBuildNumberEnv.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 scripts/useBuildNumberEnv.sh (limited to 'scripts/useBuildNumberEnv.sh') diff --git a/scripts/useBuildNumberEnv.sh b/scripts/useBuildNumberEnv.sh new file mode 100755 index 000000000..fe273d394 --- /dev/null +++ b/scripts/useBuildNumberEnv.sh @@ -0,0 +1,11 @@ +#!/bin/bash +outputIos=$(eas build:version:get -p ios) +outputAndroid=$(eas build:version:get -p android) +currentIosVersion=${outputIos#*buildNumber - } +currentAndroidVersion=${outputAndroid#*versionCode - } + +BSKY_IOS_BUILD_NUMBER=$((currentIosVersion+1)) +BSKY_ANDROID_VERSION_CODE=$((currentAndroidVersion+1)) + +bash -c "BSKY_IOS_BUILD_NUMBER=$BSKY_IOS_BUILD_NUMBER BSKY_ANDROID_VERSION_CODE=$BSKY_ANDROID_VERSION_CODE $*" + -- cgit 1.4.1