Skip to content

Commit

Permalink
added bash script to automate releases
Browse files Browse the repository at this point in the history
  • Loading branch information
TinasheMTapera committed May 12, 2021
1 parent 9343b11 commit 2d1ec24
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
Empty file removed config.json
Empty file.
35 changes: 35 additions & 0 deletions release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
#!/bin/bash

if [ $# -eq 0 ]
then
echo "No version argument supplied"
exit
fi

echo Upgrading and uploading fw-heudiconv...

VERSION=$1

echo Building docker image:
echo docker build -t pennbbl/fw-heudiconv:$VERSION .

docker build -t pennbbl/fw-heudiconv:$VERSION .

echo Testing local help call...

fw gear local --help

retVal=$?
if [ $retVal -ne 0 ]; then
echo "Error with local test"
exit $retVal
fi

echo Uploading to pip...

python setup.py sdist
twine upload dist/*

echo Uploading gear...

fw gear upload

0 comments on commit 2d1ec24

Please sign in to comment.