Skip to content

Commit

Permalink
Update release.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
kellyroach-optimizely committed Apr 17, 2018
1 parent c20ac8b commit b58c3cc
Showing 1 changed file with 11 additions and 14 deletions.
25 changes: 11 additions & 14 deletions Scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,17 @@ if [ "$versions_valid" != "y" ]; then
exit 1
fi;

# ---- Build the universal frameworks ----
printf "\n\n4. Building the universal frameworks...\n\n"
xcodebuild -workspace OptimizelySDK.xcworkspace -scheme OptimizelySDKiOS-Universal -configuration Release
xcodebuild -workspace OptimizelySDK.xcworkspace -scheme OptimizelySDKTVOS-Universal -configuration Release
# ---- Build universal frameworks ----
printf "\n\n4. Building universal frameworks.\n\n"
printf "Build universal frameworks? (We recommend no, not here.)\n"
printf "(You should have done this earlier in the #.#.# branch that P.R.'s on a #.#.x branch.)"
read -n 1 -p "[y/n] $cr? " build_universal;
if [ "$build_universal" == "y" ]; then
Xcodebuild -workspace OptimizelySDK.xcworkspace -scheme OptimizelySDKiOS-Universal -configuration Release
Xcodebuild -workspace OptimizelySDK.xcworkspace -scheme OptimizelySDKTVOS-Universal -configuration Release
printf "\nPlease commit your change.\n"
exit 1
fi

# ---- Update podspec files ----
printf "\n\n5. Updating podspec files with the new version numbers...\n\n"
Expand Down Expand Up @@ -211,16 +218,6 @@ printf "\nCorrect the podspec(s) before proceeding. Delete tag and retag the fix
exit 1
fi;

# ---- commit podspec changes ----
printf "\n"
read -n 1 -p "7. Commit and push version bump changes to master? Skip this step if it has already been done. [y/n] $cr? " podspec_valid;
if [ "$podspec_valid" == "y" ]; then
printf "\nCommitting and pushing master with version bump changes...\n";
git add -u
git commit -m "Bumped version for new release."
git push origin devel
fi;

# ---- git tag all modules----
printf "\n\n8. Tagging all modules...\n";
printf "Tagging core-$OPTIMIZELY_SDK_CORE_VERSION\n";
Expand Down

0 comments on commit b58c3cc

Please sign in to comment.