summary refs log tree commit diff
path: root/.ci
diff options
context:
space:
mode:
authorredsky17 <joedonofry@gmail.com>2019-01-31 21:56:19 +0000
committerredsky17 <joedonofry@gmail.com>2019-01-31 21:56:19 +0000
commite397bc92551f6737544299a1df5b1021ff34d030 (patch)
tree5c05b9b50a0f90053bbe1579f13f3ea4e47535e4 /.ci
parentAdd TAVIS_TAG for build artifacts (diff)
downloadnheko-e397bc92551f6737544299a1df5b1021ff34d030.tar.xz
Update deployment configuration
Diffstat (limited to '.ci')
-rwxr-xr-x.ci/linux/deploy.sh6
-rwxr-xr-x.ci/script.sh4
2 files changed, 4 insertions, 6 deletions
diff --git a/.ci/linux/deploy.sh b/.ci/linux/deploy.sh
index f0e9fa5d..363f92bc 100755
--- a/.ci/linux/deploy.sh
+++ b/.ci/linux/deploy.sh
@@ -38,8 +38,6 @@ export LD_LIBRARY_PATH=.deps/usr/lib/:$LD_LIBRARY_PATH
 
 chmod +x nheko-x86_64.AppImage
 
-if [ ! -z $TRAVIS_TAG ]; then
-    mv nheko-x86_64.AppImage nheko-${TRAVIS_TAG}-x86_64.AppImage
-elif [ ! -z $TRAVIS_COMMIT ]; then
-    mv nheko-x86_64.AppImage nheko-${TRAVIS_COMMIT}-x86_64.AppImage
+if [ ! -z $VERSION ]; then
+    mv nheko-x86_64.AppImage nheko-${VERSION}-x86_64.AppImage
 fi
diff --git a/.ci/script.sh b/.ci/script.sh
index 17246354..930af752 100755
--- a/.ci/script.sh
+++ b/.ci/script.sh
@@ -36,11 +36,11 @@ cmake --build build
 if [ $TRAVIS_OS_NAME == osx ]; then
     make lint;
 
-    if [[ $DEPLOYMENT == 1  && ( ! -z $TRAVIS_TAG  ||  ! -z $TRAVIS_COMMIT ) ]] ; then
+    if [ $DEPLOYMENT == 1 ] && [ ! -z $VERSION ] ; then
         make macos-deploy;
     fi
 fi
 
-if [[ $TRAVIS_OS_NAME == linux  && $DEPLOYMENT == 1 && ( ! -z $TRAVIS_TAG  || ! -z $TRAVIS_COMMIT ) ]] ; then
+if [ $TRAVIS_OS_NAME == linux ]  && [ $DEPLOYMENT == 1 && [ ! -z $VERSION ] ; then
     make linux-deploy;
 fi