Skip to content

Commit

Permalink
Updated the release script
Browse files Browse the repository at this point in the history
  • Loading branch information
mapio committed Jun 29, 2018
1 parent 5ac1271 commit 289fd05
Showing 1 changed file with 24 additions and 3 deletions.
27 changes: 24 additions & 3 deletions bin/release
Original file line number Diff line number Diff line change
@@ -1,7 +1,28 @@
#!/bin/bash

unset rgit
version=$(grep 'VERSION\s*=' ./src/tm/__init__.py | cut -d= -f2 | tr -d "' ")

version=v$(grep 'VERSION\s*=' ./src/tm/__init__.py | cut -d= -f2 | tr -d "' ")

./bin/mkdist
gh-release create scythe-suite/tristo-mietitore v${version}

git tag $version
git push --tags

github-release release \
--user scythe-suite \
--repo tristo-mietitore \
--tag $version \
--name "$1" \
--description "$2" \

github-release upload \
--user scythe-suite \
--repo tristo-mietitore \
--tag $version \
--name tm \
--file ./release/tm

github-release info \
--user scythe-suite \
--repo tristo-mietitore \
--tag $version

0 comments on commit 289fd05

Please sign in to comment.