-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
circleci
committed
Feb 28, 2022
1 parent
56c3986
commit e91ee1f
Showing
2 changed files
with
124 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/bash | ||
set -e -o pipefail | ||
trap '[ "$?" -eq 0 ] || echo "Error Line:<$LINENO> Error Function:<${FUNCNAME}>"' EXIT | ||
cd `dirname $0` && cd .. | ||
CURRENT=`pwd` | ||
echo $CURRENT | ||
|
||
function deploy | ||
{ | ||
tag=$1 | ||
if [ -z "$tag" ] | ||
then | ||
echo "not found tag name" | ||
exit 1 | ||
fi | ||
git tag -a $tag -m 'Add $tag' | ||
git push origin $tag | ||
|
||
goreleaser release --rm-dist | ||
} | ||
|
||
CMD=$1 | ||
shift | ||
$CMD $* |