diff options
author | j-selby <jselby@jselby.net> | 2017-08-10 06:17:27 +0200 |
---|---|---|
committer | j-selby <jselby@jselby.net> | 2017-08-10 09:40:56 +0200 |
commit | 80f85b429c7cfce70535e68014ed1bf5dcdfbc03 (patch) | |
tree | 2134f2106f3849efbf1b67a640fdcfec960f8ffe /.travis-upload.sh | |
parent | Merge pull request #2857 from j-selby/deploy-fix (diff) | |
download | yuzu-80f85b429c7cfce70535e68014ed1bf5dcdfbc03.tar yuzu-80f85b429c7cfce70535e68014ed1bf5dcdfbc03.tar.gz yuzu-80f85b429c7cfce70535e68014ed1bf5dcdfbc03.tar.bz2 yuzu-80f85b429c7cfce70535e68014ed1bf5dcdfbc03.tar.lz yuzu-80f85b429c7cfce70535e68014ed1bf5dcdfbc03.tar.xz yuzu-80f85b429c7cfce70535e68014ed1bf5dcdfbc03.tar.zst yuzu-80f85b429c7cfce70535e68014ed1bf5dcdfbc03.zip |
Diffstat (limited to '')
-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/ |