Skip to content

Commit d45c8fd

Browse files
authored
Push to stores only on dev and beta branches (flutter#14618)
1 parent bc36ca9 commit d45c8fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dev/bots/travis_script.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ if [ "$SHARD" = "build_and_deploy_gallery" ]; then
1111
export ANDROID_HOME=`pwd`/android-sdk
1212
(cd examples/flutter_gallery; flutter build apk --release)
1313
echo "Android Flutter Gallery built"
14-
if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then # TODO(xster): add back && [ "$TRAVIS_BRANCH" = "dev" ] after testing
14+
if [[ "$TRAVIS_PULL_REQUEST" == "false" && ("$TRAVIS_BRANCH" == "dev" || "$TRAVIS_BRANCH" == "beta") ]]; then
1515
echo "Deploying to Play Store..."
1616
(cd examples/flutter_gallery/android; bundle install && bundle exec fastlane deploy_play_store)
1717
else
@@ -21,7 +21,7 @@ if [ "$SHARD" = "build_and_deploy_gallery" ]; then
2121
echo "Building Flutter Gallery for iOS..."
2222
(cd examples/flutter_gallery; flutter build ios --release --no-codesign)
2323
echo "iOS Flutter Gallery built"
24-
if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then # TODO(xster): add back && [ "$TRAVIS_BRANCH" = "dev" ] after testing
24+
if [[ "$TRAVIS_PULL_REQUEST" == "false" && ("$TRAVIS_BRANCH" == "dev" || "$TRAVIS_BRANCH" == "beta") ]]; then
2525
echo "Re-building with distribution profile and deploying to TestFlight..."
2626
(cd examples/flutter_gallery/ios; bundle install && bundle exec fastlane build_and_deploy_testflight)
2727
else

0 commit comments

Comments
 (0)