Skip to content

Commit

Permalink
add deployment script
Browse files Browse the repository at this point in the history
  • Loading branch information
subho007 committed May 27, 2021
1 parent ce21d8e commit f98c026
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions scripts/deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#! /bin/bash
#
# deploy.sh
# Copyright (C) Appknox <[email protected]>
#
# Distributed under terms of the Apache 2.0 license.
#


rm -rf dist/
if [ "$1" != '' ]; then
poetry version $1
else
poetry version patch
fi
version=$(poetry version | awk '{print $2}')
tag="v${version}"
echo $tag
export CURRENT_BRANCH
CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD)
git tag $tag
git push --tags
git push origin "$CURRENT_BRANCH:$CURRENT_BRANCH"
poetry build
poetry publish

0 comments on commit f98c026

Please sign in to comment.