Skip to content

Commit

Permalink
v0.0.1a3 (#77)
Browse files Browse the repository at this point in the history
* fixed release scripts

* bumped version from 0.0.1a2 to 0.0.1a3Ω
  • Loading branch information
akmorrow13 authored Mar 5, 2021
1 parent 4490851 commit 334b30f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
18 changes: 15 additions & 3 deletions release/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

set -e -x

# make sure gh is installed
if ! command -v gh &> /dev/null
then
echo "github client (gh) needs to be installed to make a release. See https://cli.github.com/"
exit
fi

# do we have enough arguments?
if [ $# -lt 2 ]; then
echo "Usage:"
Expand All @@ -16,7 +23,7 @@ current_version=$(python version.py)
# get current branch
branch=$(git status -bs | awk '{ print $2 }' | awk -F'.' '{ print $1 }' | head -n 1)

# fclean up if something goes wrong
# clean up if something goes wrong
function clean_up {

find . -name "*.bak" -exec rm -f {} \;
Expand Down Expand Up @@ -57,7 +64,7 @@ git push upstream ${release}

# update version to devel
current_version=$(python version.py)
find . -name "version.py" -exec sed -e "s/${release}/${devel}/g" \
find . -name "version.py" -exec sed -e "s/${current_version}/${devel}/g" \
-i.${release}.bak '{}' \;

find . -name "*${release}.bak" -exec rm -f {} \;
Expand All @@ -69,5 +76,10 @@ git commit -m "bumped version from ${release} to ${devel}"
# pull request devel to master
git push origin ${release}

# if prompted, push to YOUR remote (not YosefLab/epitome)!
gh pr create --title "v${devel}" \
--body "bumped version from ${release} to ${devel}" \
--repo YosefLab/epitome

git checkout master
echo "Done. Now make a pull request from ${release} and tag a release on github for ${release}"
echo "Done. Now tag a release on github for ${release}"
2 changes: 1 addition & 1 deletion version.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

version = '0.0.1a2'
version = '0.0.1a3'

if __name__ == '__main__':
print(version)

0 comments on commit 334b30f

Please sign in to comment.