Don't push again on beta branch commit (#15001)

This commit is contained in:
xster
2018-02-28 17:06:54 -08:00
committed by GitHub
parent b9a7f1b915
commit a8e0f76873
2 changed files with 3 additions and 3 deletions

View File

@@ -11,7 +11,7 @@ if [ "$SHARD" = "build_and_deploy_gallery" ]; then
export ANDROID_HOME=`pwd`/android-sdk
(cd examples/flutter_gallery; flutter build apk --release)
echo "Android Flutter Gallery built"
if [[ "$TRAVIS_PULL_REQUEST" == "false" && ("$TRAVIS_BRANCH" == "dev" || "$TRAVIS_BRANCH" == "beta") ]]; then
if [[ "$TRAVIS_PULL_REQUEST" == "false" && "$TRAVIS_BRANCH" == "dev" ]]; then
echo "Deploying to Play Store..."
(cd examples/flutter_gallery/android; bundle install && bundle exec fastlane deploy_play_store)
else
@@ -21,7 +21,7 @@ if [ "$SHARD" = "build_and_deploy_gallery" ]; then
echo "Building Flutter Gallery for iOS..."
(cd examples/flutter_gallery; flutter build ios --release --no-codesign)
echo "iOS Flutter Gallery built"
if [[ "$TRAVIS_PULL_REQUEST" == "false" && ("$TRAVIS_BRANCH" == "dev" || "$TRAVIS_BRANCH" == "beta") ]]; then
if [[ "$TRAVIS_PULL_REQUEST" == "false" && "$TRAVIS_BRANCH" == "dev" ]]; then
echo "Re-building with distribution profile and deploying to TestFlight..."
(cd examples/flutter_gallery/ios; bundle install && bundle exec fastlane build_and_deploy_testflight)
else