-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathgithub_release.sh
More file actions
executable file
·26 lines (22 loc) · 937 Bytes
/
github_release.sh
File metadata and controls
executable file
·26 lines (22 loc) · 937 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# If you have an env file, and you've set SE variable to something
# other than tda, prevent the release from happening
if [ -f ".env" ]
then
export $(cat .env | xargs) # Set env vars from .env file so they're accessible
if [[ $SE && $SE != 'tda' ]]
then
printf "Your SE environment variable is set to $SE.\nThe SE variable must be set to tda to create a release.\nPlease change it in your env file and try again."
exit
fi
fi
PACKAGE_VERSION=$(node -p -e "require('./package.json').version")
REPO=sentry-demos/sentry_react_native
while true; do
read -p "Do you wish to create Github Release $PACKAGE_VERSION for $REPO? Answer y/n: " yn
case $yn in
[Yy]* ) make install; break;;
[Nn]* ) exit;;
* ) echo "Please answer y or n.";;
esac
done
gh release create $PACKAGE_VERSION app-debug.apk app-release.apk sentry_react_native.app.zip sentry_react_native_debug.app.zip