Fix bintray release structure (#531)

Same file name is not allowed across packages in one version.
This commit is contained in:
Eugene Kliuchnikov 2017-03-24 14:31:30 +01:00 committed by GitHub
parent 51d6780b04
commit e77799b084
2 changed files with 6 additions and 16 deletions

View File

@ -1,31 +1,21 @@
{ {
"package": { "package": {
"name": "${TRAVIS_OS_NAME}-bin", "name": "snapshots",
"repo": "brotli", "repo": "brotli",
"subject": "eustas" "subject": "eustas"
}, },
"version": { "version": {
"name": "${RELEASE_VERSION}", "name": "${TRAVIS_OS_NAME}-${RELEASE_DATE}",
"desc": "Binary Artifacts (Snapshot)", "desc": "Binary Artifacts (Dev)",
"released": "${RELEASE_DATE}", "released": "${RELEASE_DATE}",
"gpgSign": false "gpgSign": false
}, },
"files": [ "files": [
{ {
"includePattern": "bazel-bin/(libbrotli.*\\.a)", "includePattern": "brotli.zip",
"uploadPattern": "$1", "uploadPattern": "brotli.zip",
"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} "matrix_params": {"override": 1}
} }
], ],

View File

@ -91,8 +91,8 @@ case "$1" in
case "${BUILD_SYSTEM}" in case "${BUILD_SYSTEM}" in
"bazel") "bazel")
export RELEASE_DATE=`date +%Y-%m-%d` 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 perl -p -i -e 's/\$\{([^}]+)\}/defined $ENV{$1} ? $ENV{$1} : $&/eg' .bintray.json
zip -j9 brotli.zip bazel-bin/libbrotli*.a bazel-bin/libbrotli*.so bazel-bin/bro
;; ;;
esac esac
;; ;;