Actually publich artifacts to Bintray (#530)

This commit is contained in:
Eugene Kliuchnikov 2017-03-24 13:40:30 +01:00 committed by GitHub
parent 6715130c24
commit 51d6780b04
3 changed files with 18 additions and 6 deletions

View File

@ -6,15 +6,28 @@
},
"version": {
"name": "r${GIT_REVISION}",
"desc": "Snapshot Artifacts",
"name": "${RELEASE_VERSION}",
"desc": "Binary Artifacts (Snapshot)",
"released": "${RELEASE_DATE}",
"gpgSign": false
},
"files": [
{"includePattern": "bazel-bin/(libbrotli.*)", "uploadPattern": "$1"},
{"includePattern": "bazel-bin/bro", "uploadPattern": "bro"}
{
"includePattern": "bazel-bin/(libbrotli.*\\.a)",
"uploadPattern": "$1",
"matrix_params": {"override": 1}
},
{
"includePattern": "bazel-bin/(libbrotli.*\\.so)",
"uploadPattern": "$1",
"matrix_params": {"override": 1}
},
{
"includePattern": "bazel-bin/bro",
"uploadPattern": "bro",
"matrix_params": {"override": 1}
}
],
"publish": true

View File

@ -90,8 +90,8 @@ case "$1" in
"before_deploy")
case "${BUILD_SYSTEM}" in
"bazel")
export GIT_REVISION=`git rev-list --count @`
export RELEASE_DATE=`date +%Y-%m-%d`
export RELEASE_VERSION=`date +snapshot.%Y.%m.%d`
perl -p -i -e 's/\$\{([^}]+)\}/defined $ENV{$1} ? $ENV{$1} : $&/eg' .bintray.json
;;
esac

View File

@ -280,4 +280,3 @@ deploy:
on:
condition: "${BUILD_SYSTEM} = bazel"
skip_cleanup: true
dry-run: true