Skip to content

Commit

Permalink
Add deploy.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
hernanmd committed Jan 25, 2020
1 parent 519fdcd commit e80455d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ set -eo pipefail
main () {
local version

if [ $# -eq 0 ]; then
echo "No arguments supplied"
exit 1
fi
version="$1"

echo $(date "+%d-%m-%Y") > DATE
[[ -f DATE ]] || { echo "Couldn't write DATE file for release"; exit 1; }
release-it "$version"

if [ $# -eq 0 ]; then
release-it
else
version="$1"
release-it "$version"
fi
}

main $*

0 comments on commit e80455d

Please sign in to comment.