Publish artifact links to Slack
This commit is contained in:
parent
115045c481
commit
fcc28657bc
2 changed files with 13 additions and 0 deletions
|
|
@ -132,6 +132,10 @@ jobs:
|
|||
- store_artifacts:
|
||||
path: /tmp/release
|
||||
destination: release
|
||||
- run:
|
||||
name: Publish artifact link to Slack
|
||||
command: |
|
||||
.circleci/script/publish_artifact
|
||||
mac:
|
||||
macos:
|
||||
xcode: "9.0"
|
||||
|
|
@ -196,6 +200,10 @@ jobs:
|
|||
- store_artifacts:
|
||||
path: /tmp/release
|
||||
destination: release
|
||||
- run:
|
||||
name: Publish artifact link to Slack
|
||||
command: |
|
||||
.circleci/script/publish_artifact
|
||||
deploy:
|
||||
docker:
|
||||
- image: circleci/clojure:lein-2.8.1
|
||||
|
|
|
|||
5
.circleci/script/publish_artifact
Executable file
5
.circleci/script/publish_artifact
Executable file
|
|
@ -0,0 +1,5 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
channel="#babashka_circleci_builds"
|
||||
text="[$BABASHKA_PLATFORM - $CIRCLE_BRANCH@$CIRCLE_SHA1]: https://$CIRCLE_BUILD_NUM-201467090-gh.circle-artifacts.com/0/release/babashka-0.0.61-SNAPSHOT-$BABASHKA_PLATFORM-amd64.zip"
|
||||
curl -X POST -H "Content-Type: application/json" -d '{"username":"borkdude", "channel":'\""$channel\""', "text":'"\"$text\""'}' $SLACK_HOOK_URL
|
||||
Loading…
Reference in a new issue