Add TAVIS_TAG for build artifacts

remotes/origin/HEAD
redsky17 6 years ago
parent ebc2a64627
commit b4b683b590
  1. 2
      .ci/linux/deploy.sh
  2. 4
      .ci/script.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

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

Loading…
Cancel
Save