ci(config): add upload_to_slack
This commit is contained in:
parent
c541ec7105
commit
a9c8d1dcb0
|
@ -62,15 +62,20 @@ jobs:
|
|||
- store_artifacts:
|
||||
path: ./dist/zec-react-wallet_0.3.0_amd64.deb
|
||||
destination: zec-react-wallet_0.3.0_amd64.deb
|
||||
- run:
|
||||
name: Upload to Slack
|
||||
command: |
|
||||
export GIT_COMMIT_DESC=$(git log --format=oneline -n 1 | sed -E 's/^[^ ]+ (.*)$/\1/g')
|
||||
curl -F file=./dist/zec-react-wallet_0.3.0_amd64.deb -F channels=$SLACK_CHANNEL -F token=$SLACK_API_TOKEN -F title="${CIRCLE_PROJECT_REPONAME} | branch -> ${CIRCLE_BRANCH} | commit -> ${GIT_COMMIT_DESC}" https://slack.com/api/files.upload
|
||||
|
||||
workflows:
|
||||
version: 2
|
||||
test_build:
|
||||
jobs:
|
||||
- install_deps
|
||||
- test:
|
||||
requires:
|
||||
- install_deps
|
||||
# - test:
|
||||
# requires:
|
||||
# - install_deps
|
||||
- build_linux:
|
||||
requires:
|
||||
- test
|
||||
- install_deps
|
||||
|
|
Loading…
Reference in New Issue