diff options
author | j-selby <jselby@jselby.net> | 2017-08-10 14:17:27 +1000 |
---|---|---|
committer | j-selby <jselby@jselby.net> | 2017-08-10 17:40:56 +1000 |
commit | 80f85b429c7cfce70535e68014ed1bf5dcdfbc03 (patch) | |
tree | 2134f2106f3849efbf1b67a640fdcfec960f8ffe /.travis-upload.sh | |
parent | 9f6868ad9bade0dee0a13f9d3b7cb88ec5c47f0c (diff) |
Implement correct folder structure for CI builds
Diffstat (limited to '.travis-upload.sh')
-rwxr-xr-x | .travis-upload.sh | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/.travis-upload.sh b/.travis-upload.sh index 17959b0e1..8c1fa21c5 100755 --- a/.travis-upload.sh +++ b/.travis-upload.sh @@ -123,9 +123,16 @@ cp README.md "$REV_NAME" tar $COMPRESSION_FLAGS "$ARCHIVE_NAME" "$REV_NAME" -mv "$REV_NAME" nightly +# Find out what release we are building +if [ -z $TRAVIS_TAG ]; then + RELEASE_NAME=head +else + RELEASE_NAME=$(echo $TRAVIS_TAG | cut -d- -f1) +fi + +mv "$REV_NAME" $RELEASE_NAME -7z a "$REV_NAME.7z" nightly +7z a "$REV_NAME.7z" $RELEASE_NAME # move the compiled archive into the artifacts directory to be uploaded by travis releases mv "$ARCHIVE_NAME" artifacts/ |