summaryrefslogtreecommitdiff
path: root/scripts/deploy.sh
blob: 51b544839a207f433d32f31cd1d8829fb317fea7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#! /bin/bash
#
# deploy.sh
# Copyright (C) 2015 Subho Halder <sunny@appknox.com>
#
# Distributed under terms of the MIT license.
#


rm -rf dist/
bumpversion patch
export CURRENT_BRANCH
CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD)
git push --tags
git push origin "$CURRENT_BRANCH:$CURRENT_BRANCH"
python setup.py sdist
python setup.py bdist_wheel
twine upload dist/*