-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathrelease.sh
executable file
·36 lines (25 loc) · 970 Bytes
/
release.sh
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
26
27
28
29
30
31
32
33
34
OUTPUT=$(python build/packageWorkflow.py . -o build/)
#OUTPUT="Airport_Search Airport_Search-0.6.22.alfredworkflow 0.6.22"
TEXT_ARRRAY=($OUTPUT)
echo ${TEXT_ARRRAY[0]}
echo ${TEXT_ARRRAY[1]}
echo ${TEXT_ARRRAY[2]}
echo " ________ __ _______ __ "
echo " / ____/ /_ ____ _____ ____ ____ ____/ / / ____(_) /__ _____ "
echo " / / / __ \/ __ \`/ __ \/ __ \`/ _ \/ __ / / /_ / / / _ \/ ___/ "
echo " / /___/ / / / /_/ / / / / /_/ / __/ /_/ / / __/ / / / __(__ ) "
echo " \____/_/ /_/\__,_/_/ /_/\__, /\___/\__,_/ /_/ /_/_/\___/____/ "
echo " /____/ "
echo ""
git status -s
echo " Commit and make a release?"
read -p "Are you sure? " -n 1 -r
echo # (optional) move to a new line
if [[ $REPLY =~ ^[Yy]$ ]]
then
# do dangerous stuff
git add -u
git commit -m "Prepping release ${TEXT_ARRRAY[2]}"
git push
python release.py ${TEXT_ARRRAY[2]} ${TEXT_ARRRAY[1]}
fi