Skip to content

Commit

Permalink
send notification to slack on new release
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Vlasic committed Oct 5, 2021
1 parent 96a722f commit 64e0e45
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ echo "> Generating cli doc"
cd "$GIT_ROOT"
MANTIL_GEN_DOC="$GIT_ROOT/doc" mantil
scripts/help.sh > commands.md

if [[ $* == *--only-cli* ]]; then
exit 0
fi
Expand All @@ -36,6 +36,7 @@ if [ -n "$RELEASE" ]; then
echo "> Releasing new cli version to homebrew"
cd "$GIT_ROOT"
(export tag=$tag dev=$USER on_tag=$on_tag; goreleaser release --rm-dist)
curl -X POST -H 'Content-type: application/json' --data '{"text":"Mantil version '$tag' is released!"}' https://hooks.slack.com/services/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
fi

deploy_function() {
Expand Down

0 comments on commit 64e0e45

Please sign in to comment.