diff --git a/deploy.sh b/deploy.sh index 087e2fc..dd1628c 100755 --- a/deploy.sh +++ b/deploy.sh @@ -27,17 +27,15 @@ sed -i "s/\(^\s*\)versionCode [0-9]*$/\1versionCode $versionCode/" \ sed -i "s/\(^\s*\)versionName \"[0-9]*.[0-9]*\"$/\1versionName \"$major.$minor\"/" "$build" sed -i "s/\"version\": \"[0-9]*.[0-9]*\"/\"version\": \"$major.$minor\"/" ../package.json -[ "$1" != "--nobundle" ] && ./gradlew bundleRelease - -bundle install -bundle exec fastlane supply --aab app/build/outputs/bundle/release/app-release.aab +if [ "$1" != "-n" ]; then + ./gradlew bundleRelease + bundle install + bundle exec fastlane supply --aab app/build/outputs/bundle/release/app-release.aab +fi git add app/build.gradle ../package.json git commit --amend --message \ "$(git log -1 --pretty=%B | sed " 1 s/.*/& - $major.$minor/")" git tag "$versionCode" -git push origin HEAD & +git push origin HEAD git push --tags - -cd .. -./install.sh