mirror of
https://github.com/wahyd4/kt-connect.git
synced 2026-08-09 13:26:27 +10:00
20 lines
508 B
Bash
Executable File
20 lines
508 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
RELEASE_VERSION=$1
|
|
RELEASE_VERSION=${RELEASE_VERSION:-0.0.1}
|
|
RELEASE_BRANCH=release-$RELEASE_VERSION
|
|
|
|
echo "Release Version: $RELEASE_VERSION"
|
|
echo "Checkout to release branch $RELEASE_BRANCH"
|
|
|
|
git checkout -b $RELEASE_BRANCH
|
|
sed -i '' "s/master/$RELEASE_VERSION/g" cmd/ktctl/main.go
|
|
|
|
git add .
|
|
git commit -m "update Ktctl version to $RELEASE_VERSION"
|
|
git tag $RELEASE_VERSION
|
|
git push origin $RELEASE_VERSION
|
|
|
|
git checkout master
|
|
git branch -D $RELEASE_BRANCH
|
|
git tag -d $RELEASE_VERSION |