diff options
author | Eugene Kliuchnikov <eustas@google.com> | 2017-03-24 14:31:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-24 14:31:30 +0100 |
commit | e77799b0844b43c067404dd2b11cfc6368cc9157 (patch) | |
tree | 2047e8d649061d848e05708618f45ffaedbbd97a | |
parent | 51d6780b04aea64e318503fee1317803247749f0 (diff) | |
download | brotli-e77799b0844b43c067404dd2b11cfc6368cc9157.zip brotli-e77799b0844b43c067404dd2b11cfc6368cc9157.tar.gz brotli-e77799b0844b43c067404dd2b11cfc6368cc9157.tar.bz2 |
Fix bintray release structure (#531)
Same file name is not allowed across packages in one version.
-rw-r--r-- | .bintray.json | 20 | ||||
-rwxr-xr-x | .travis.sh | 2 |
2 files changed, 6 insertions, 16 deletions
diff --git a/.bintray.json b/.bintray.json index 98fa88d..592f8cc 100644 --- a/.bintray.json +++ b/.bintray.json @@ -1,31 +1,21 @@ { "package": { - "name": "${TRAVIS_OS_NAME}-bin", + "name": "snapshots", "repo": "brotli", "subject": "eustas" }, "version": { - "name": "${RELEASE_VERSION}", - "desc": "Binary Artifacts (Snapshot)", + "name": "${TRAVIS_OS_NAME}-${RELEASE_DATE}", + "desc": "Binary Artifacts (Dev)", "released": "${RELEASE_DATE}", "gpgSign": false }, "files": [ { - "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", + "includePattern": "brotli.zip", + "uploadPattern": "brotli.zip", "matrix_params": {"override": 1} } ], @@ -91,8 +91,8 @@ case "$1" in case "${BUILD_SYSTEM}" in "bazel") 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 + zip -j9 brotli.zip bazel-bin/libbrotli*.a bazel-bin/libbrotli*.so bazel-bin/bro ;; esac ;; |