-
Notifications
You must be signed in to change notification settings - Fork 5
/
release.sh
executable file
·42 lines (30 loc) · 1.03 KB
/
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
35
36
37
38
39
40
41
42
#!/bin/bash
OUTPUT=$(python build/package_workflow.py . -o build/)
TEXT_ARRRAY=($OUTPUT)
#Title of Workflow
echo ${TEXT_ARRRAY[0]}
# Workflwo File output name
echo ${TEXT_ARRRAY[1]}
# Version
echo ${TEXT_ARRRAY[2]}
echo " ________ __ _______ __ "
echo " / ____/ /_ ____ _____ ____ ____ ____/ / / ____(_) /__ _____ "
echo " / / / __ \/ __ \`/ __ \/ __ \`/ _ \/ __ / / /_ / / / _ \/ ___/ "
echo " / /___/ / / / /_/ / / / / /_/ / __/ /_/ / / __/ / / / __(__ ) "
echo " \____/_/ /_/\__,_/_/ /_/\__, /\___/\__,_/ /_/ /_/_/\___/____/ "
echo " /____/ "
echo ""
git status -s
echo " Commit and make a release?"
# Store commit messages in a notes file
git log origin..HEAD --pretty=%B > .notes.txt
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