ci(config): add upload_to_slack

This commit is contained in:
George Lima 2019-02-15 14:44:35 -03:00
parent c541ec7105
commit a9c8d1dcb0
1 changed files with 9 additions and 4 deletions

View File

@ -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