-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathescs.sh
executable file
·59 lines (52 loc) · 1.73 KB
/
escs.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
##############################################################################
cd ~/projects/
git clone git@bitbucket.org:arcamens/sqlike.git sqlike-code
##############################################################################
# push sqlike master.
cd ~/projects/django-sqlike-code
# clean up all .pyc files.
find . -name "*.pyc" -exec rm -f {} \;
git status
git add *
git commit -a
git push -u origin master
##############################################################################
# push sqlike staging.
cd ~/projects/django-sqlike-code
# clean up all .pyc files.
find . -name "*.pyc" -exec rm -f {} \;
git status
git add *
git commit -a
git push -u origin staging
##############################################################################
# create dev branch.
cd ~/projects/sqlike-code
git branch -a
git checkout -b development
git push --set-upstream origin development
##############################################################################
# merge staging into master
git checkout master
git merge staging
git push -u origin master
git checkout staging
##############################################################################
# sqlike, pull.
cd ~/projects/sqlike-code
git pull
##############################################################################
# delete, last, commit.
cd ~/projects/sqlike-code
git reset HEAD^ --hard
git push -f
##############################################################################
# Create releases.
git tag -a v1.0.0 -m 'Initial release'
git push origin : v1.0.0
git tag -a v2.0.0 -m 'Running on django 2.'
git push origin : v2.0.0
##############################################################################
# Upload the package to pypi.
python setup.py sdist register upload
rm -fr dist