Skip to content

Commit

Permalink
build: set version to 9.9.9 for test builds (#107)
Browse files Browse the repository at this point in the history
  • Loading branch information
ice-orion authored Jul 5, 2023
1 parent e360cd0 commit 9c33ee4
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/CICD.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -277,19 +277,19 @@ jobs:
run: |
if [[ ${{ github.event_name == 'pull_request' && github.event.pull_request.draft == false}} == true ]]
then
echo "IOS_SIGN_TYPE=adhoc" >> $GITHUB_ENV
echo "DEPLOY_TARGET=firebase" >> $GITHUB_ENV
echo "APP_VERSION=0.0.0" >> $GITHUB_ENV
echo "RELEASE_NOTES=release_notes:${{ github.head_ref }}" >> $GITHUB_ENV
echo "IOS_SIGN_TYPE=adhoc" >> $GITHUB_ENV
echo "DEPLOY_TARGET=firebase" >> $GITHUB_ENV
echo "APP_VERSION=9.9.9" >> $GITHUB_ENV
echo "RELEASE_NOTES=release_notes:${{ github.head_ref }}" >> $GITHUB_ENV
else
echo "IOS_SIGN_TYPE=appstore" >> $GITHUB_ENV
echo "DEPLOY_TARGET=testflight" >> $GITHUB_ENV
if [[ ${{ github.ref_name == 'master' }} == true ]]
then
echo "APP_VERSION=0.0.0" >> $GITHUB_ENV
else
echo "APP_VERSION=$(echo ${GITHUB_REF_NAME#*v})" >> $GITHUB_ENV
fi
echo "IOS_SIGN_TYPE=appstore" >> $GITHUB_ENV
echo "DEPLOY_TARGET=testflight" >> $GITHUB_ENV
if [[ ${{ github.ref_name == 'master' }} == true ]]
then
echo "APP_VERSION=9.9.9" >> $GITHUB_ENV
else
echo "APP_VERSION=$(echo ${GITHUB_REF_NAME#*v})" >> $GITHUB_ENV
fi
fi
if [[ ${{ github.event_name == 'push' && github.ref_name != 'master' }} == true ]]
then
Expand Down Expand Up @@ -371,14 +371,14 @@ jobs:
then
echo "ANDROID_ARCHIVE_TYPE=apk" >> $GITHUB_ENV
echo "DEPLOY_TARGET=firebase" >> $GITHUB_ENV
echo "APP_VERSION=0.0.0" >> $GITHUB_ENV
echo "APP_VERSION=9.9.9" >> $GITHUB_ENV
echo "RELEASE_NOTES=release_notes:${{ github.head_ref }}" >> $GITHUB_ENV
else
echo "ANDROID_ARCHIVE_TYPE=bundle" >> $GITHUB_ENV
echo "DEPLOY_TARGET=playstore" >> $GITHUB_ENV
if [[ ${{ github.ref_name == 'master' }} == true ]]
then
echo "APP_VERSION=0.0.0" >> $GITHUB_ENV
echo "APP_VERSION=9.9.9" >> $GITHUB_ENV
else
echo "APP_VERSION=$(echo ${GITHUB_REF_NAME#*v})" >> $GITHUB_ENV
fi
Expand Down
2 changes: 1 addition & 1 deletion android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ android {
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 1
versionName "0.0.0"
versionName "9.9.9"
buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString()
testBuildType System.getProperty('testBuildType', 'releasestagingE2E')
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
Expand Down
4 changes: 2 additions & 2 deletions ios/ice.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,7 @@
/usr/lib/swift,
"$(inherited)",
);
MARKETING_VERSION = 0.0.0;
MARKETING_VERSION = 9.9.9;
OTHER_LDFLAGS = (
"$(inherited)",
"-ObjC",
Expand Down Expand Up @@ -747,7 +747,7 @@
/usr/lib/swift,
"$(inherited)",
);
MARKETING_VERSION = 0.0.0;
MARKETING_VERSION = 9.9.9;
OTHER_LDFLAGS = (
"$(inherited)",
"-ObjC",
Expand Down

0 comments on commit 9c33ee4

Please sign in to comment.