Skip to content

Commit

Permalink
Release script was updated
Browse files Browse the repository at this point in the history
  • Loading branch information
sebaxtian committed Apr 10, 2020
1 parent 45801c4 commit 29d80fb
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,10 @@ if [ $? -eq 0 ]; then
LAST_VERSION=$(hub release | head -n 1)
echo "Lastest release $LAST_VERSION"
# Get the last patch
N=$(hub release | head -n 1 | tail -c 2)
N=$(echo $LAST_VERSION | tr "." "\n" | tail -n -1)
N=$(($N + 1))
#echo "N: $N"
# Create version tag
VERSION="$(date +%m).$(date +%d).$N"
VERSION=$(echo $VERSION | cut -c2-)
VERSION="$(($(date +%m))).$(date +%d).$N"
# Create new release
echo "Creating new release $VERSION ..."
git config --global user.email '[email protected]'
Expand Down

0 comments on commit 29d80fb

Please sign in to comment.