Add TAVIS_TAG for build artifacts

This commit is contained in:
redsky17 2019-01-31 13:22:51 +00:00
parent ebc2a64627
commit b4b683b590
2 changed files with 4 additions and 2 deletions

View file

@ -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

View file

@ -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