summaryrefslogtreecommitdiffstats
path: root/.travis-upload.sh
diff options
context:
space:
mode:
authorj-selby <jselby@jselby.net>2017-08-10 06:17:27 +0200
committerj-selby <jselby@jselby.net>2017-08-10 09:40:56 +0200
commit80f85b429c7cfce70535e68014ed1bf5dcdfbc03 (patch)
tree2134f2106f3849efbf1b67a640fdcfec960f8ffe /.travis-upload.sh
parentMerge pull request #2857 from j-selby/deploy-fix (diff)
downloadyuzu-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.sh11
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/