Remove deploy.sh from .gitignore and add deploy.sh
Not sure why I had this ignored to begin with.
This commit is contained in:
parent
91d0cbaed8
commit
c978e4b7f1
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -62,7 +62,6 @@ buck-out/
|
||||||
/ios/Pods/
|
/ios/Pods/
|
||||||
/vendor/bundle/
|
/vendor/bundle/
|
||||||
|
|
||||||
deploy.sh
|
|
||||||
README.pdf
|
README.pdf
|
||||||
build
|
build
|
||||||
|
|
||||||
|
|
16
deploy.sh
Executable file
16
deploy.sh
Executable file
|
@ -0,0 +1,16 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -ex
|
||||||
|
yarn tsc && yarn lint
|
||||||
|
git push origin HEAD > /dev/null &
|
||||||
|
cd android || exit 1
|
||||||
|
target=app/build.gradle
|
||||||
|
newVersion=$(grep '^\s*versionCode [0-9]*$' "$target" | awk '{print $2+1}')
|
||||||
|
sed -i "s/\(^\s*\)versionCode [0-9]*$/\1versionCode $newVersion/" \
|
||||||
|
"$target"
|
||||||
|
[ "$1" != "--nobundle" ] && ./gradlew bundleRelease
|
||||||
|
git add app/build.gradle
|
||||||
|
git commit -m "Set versionCode=$newVersion"
|
||||||
|
git tag "$newVersion"
|
||||||
|
git push origin HEAD & git push --tags
|
||||||
|
cd ..
|
Loading…
Reference in New Issue
Block a user