diff options
author | Denis Isidoro <denis_isidoro@live.com> | 2019-09-20 18:48:25 -0300 |
---|---|---|
committer | Denis Isidoro <denis_isidoro@live.com> | 2019-09-20 18:48:54 -0300 |
commit | 9351301e7e0f34b15cc9933a2f13082b6fb817f6 (patch) | |
tree | cfe7a44dbfa928a7c1e1e0f1c5aef4fb49a4780c | |
parent | 2bc52976c2c4365661b7100b83bcdbbe7c2284c7 (diff) |
Improve release scriptv0.6.0
-rwxr-xr-x | scripts/release | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/release b/scripts/release index f854c55..cb74f4c 100755 --- a/scripts/release +++ b/scripts/release @@ -4,7 +4,11 @@ set -euo pipefail export SCRIPT_DIR="$(cd "$(dirname "$0")/.." && pwd)" cd "$SCRIPT_DIR" -tag="v$*" +echo "git pull" +git pull + +version="$(grep VERSION "${SCRIPT_DIR}/navi" | grep -Eo '[0-9\.]+')" +tag="v${version}" tar="https://github.com/denisidoro/navi/archive/v${tag}.tar.gz" formula="/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/navi.rb" |