diff options
author | redsky17 <joedonofry@gmail.com> | 2019-01-31 13:22:51 +0000 |
---|---|---|
committer | redsky17 <joedonofry@gmail.com> | 2019-01-31 13:22:51 +0000 |
commit | b4b683b590aec196597089f9bfb1d9494b29ee9d (patch) | |
tree | e82c7c97b9141ac20e352b5b0a74f22031ea1e22 /.ci | |
parent | Attempt to fix bintray issues (diff) | |
download | nheko-b4b683b590aec196597089f9bfb1d9494b29ee9d.tar.xz |
Add TAVIS_TAG for build artifacts
Diffstat (limited to '.ci')
-rwxr-xr-x | .ci/linux/deploy.sh | 2 | ||||
-rwxr-xr-x | .ci/script.sh | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/.ci/linux/deploy.sh b/.ci/linux/deploy.sh index 4e716003..f0e9fa5d 100755 --- a/.ci/linux/deploy.sh +++ b/.ci/linux/deploy.sh @@ -40,4 +40,6 @@ 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 fi diff --git a/.ci/script.sh b/.ci/script.sh index 622bda9b..17246354 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 ]; then + if [[ $DEPLOYMENT == 1 && ( ! -z $TRAVIS_TAG || ! -z $TRAVIS_COMMIT ) ]] ; then make macos-deploy; fi fi -if [ $TRAVIS_OS_NAME == linux ] && [ $DEPLOYMENT == 1 ] && [ ! -z $TRAVIS_TAG ]; then +if [[ $TRAVIS_OS_NAME == linux && $DEPLOYMENT == 1 && ( ! -z $TRAVIS_TAG || ! -z $TRAVIS_COMMIT ) ]] ; then make linux-deploy; fi |