Adds 'after_deploy' travis hook

Changes:
1. Adds `after_deploy` hook in travis.yml file
2. Adds `.ci/after_deploy.sh` script to trigger metadata calculation

Closes #89
pull/42/merge
sobolevn 7 years ago
parent 270c6dff6b
commit 5f2d3b3c1c
No known key found for this signature in database
GPG Key ID: FF672D568AE3C73E

@ -0,0 +1,15 @@
#!/usr/bin/env bash
set -e
# This file is required, because for some reason
# travis deploys do not trigger metadata calculation.
# See: https://github.com/sobolevn/git-secret/issues/89
# This file is only called after successful deploy.
# We need to execute custom call to the Bintray API:
curl -X POST \
--user "sobolevn:$BINTRAY_API_KEY" \
-H "X-GPG-PASSPHRASE: $BINTRAY_GPG_PASS" \
"https://api.bintray.com/calc_metadata/sobolevn/$GITSECRET_DIST"

@ -71,6 +71,9 @@ deploy:
key: "$BINTRAY_API_KEY"
passphrase: "$BINTRAY_GPG_PASS"
after_deploy:
- chmod +x ".ci/after_deploy.sh" && ".ci/after_deploy.sh"
notifications:
email:
on_success: never

Loading…
Cancel
Save