Improve release script

This commit is contained in:
Denis Isidoro 2019-09-20 18:48:25 -03:00
parent 2bc52976c2
commit 9351301e7e

View file

@ -4,7 +4,11 @@ set -euo pipefail
export SCRIPT_DIR="$(cd "$(dirname "$0")/.." && pwd)" export SCRIPT_DIR="$(cd "$(dirname "$0")/.." && pwd)"
cd "$SCRIPT_DIR" 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" tar="https://github.com/denisidoro/navi/archive/v${tag}.tar.gz"
formula="/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/navi.rb" formula="/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/navi.rb"