Unverified Commit d45c8fde authored by xster's avatar xster Committed by GitHub

Push to stores only on dev and beta branches (#14618)

parent bc36ca96
...@@ -11,7 +11,7 @@ if [ "$SHARD" = "build_and_deploy_gallery" ]; then ...@@ -11,7 +11,7 @@ if [ "$SHARD" = "build_and_deploy_gallery" ]; then
export ANDROID_HOME=`pwd`/android-sdk export ANDROID_HOME=`pwd`/android-sdk
(cd examples/flutter_gallery; flutter build apk --release) (cd examples/flutter_gallery; flutter build apk --release)
echo "Android Flutter Gallery built" echo "Android Flutter Gallery built"
if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then # TODO(xster): add back && [ "$TRAVIS_BRANCH" = "dev" ] after testing if [[ "$TRAVIS_PULL_REQUEST" == "false" && ("$TRAVIS_BRANCH" == "dev" || "$TRAVIS_BRANCH" == "beta") ]]; then
echo "Deploying to Play Store..." echo "Deploying to Play Store..."
(cd examples/flutter_gallery/android; bundle install && bundle exec fastlane deploy_play_store) (cd examples/flutter_gallery/android; bundle install && bundle exec fastlane deploy_play_store)
else else
...@@ -21,7 +21,7 @@ if [ "$SHARD" = "build_and_deploy_gallery" ]; then ...@@ -21,7 +21,7 @@ if [ "$SHARD" = "build_and_deploy_gallery" ]; then
echo "Building Flutter Gallery for iOS..." echo "Building Flutter Gallery for iOS..."
(cd examples/flutter_gallery; flutter build ios --release --no-codesign) (cd examples/flutter_gallery; flutter build ios --release --no-codesign)
echo "iOS Flutter Gallery built" echo "iOS Flutter Gallery built"
if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then # TODO(xster): add back && [ "$TRAVIS_BRANCH" = "dev" ] after testing if [[ "$TRAVIS_PULL_REQUEST" == "false" && ("$TRAVIS_BRANCH" == "dev" || "$TRAVIS_BRANCH" == "beta") ]]; then
echo "Re-building with distribution profile and deploying to TestFlight..." echo "Re-building with distribution profile and deploying to TestFlight..."
(cd examples/flutter_gallery/ios; bundle install && bundle exec fastlane build_and_deploy_testflight) (cd examples/flutter_gallery/ios; bundle install && bundle exec fastlane build_and_deploy_testflight)
else else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment