mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 11:00:48 +03:00
Update deployment configuration
This commit is contained in:
parent
b4b683b590
commit
e397bc9255
3 changed files with 9 additions and 11 deletions
|
@ -38,8 +38,6 @@ export LD_LIBRARY_PATH=.deps/usr/lib/:$LD_LIBRARY_PATH
|
||||||
|
|
||||||
chmod +x nheko-x86_64.AppImage
|
chmod +x nheko-x86_64.AppImage
|
||||||
|
|
||||||
if [ ! -z $TRAVIS_TAG ]; then
|
if [ ! -z $VERSION ]; then
|
||||||
mv nheko-x86_64.AppImage nheko-${TRAVIS_TAG}-x86_64.AppImage
|
mv nheko-x86_64.AppImage nheko-${VERSION}-x86_64.AppImage
|
||||||
elif [ ! -z $TRAVIS_COMMIT ]; then
|
|
||||||
mv nheko-x86_64.AppImage nheko-${TRAVIS_COMMIT}-x86_64.AppImage
|
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -36,11 +36,11 @@ cmake --build build
|
||||||
if [ $TRAVIS_OS_NAME == osx ]; then
|
if [ $TRAVIS_OS_NAME == osx ]; then
|
||||||
make lint;
|
make lint;
|
||||||
|
|
||||||
if [[ $DEPLOYMENT == 1 && ( ! -z $TRAVIS_TAG || ! -z $TRAVIS_COMMIT ) ]] ; then
|
if [ $DEPLOYMENT == 1 ] && [ ! -z $VERSION ] ; then
|
||||||
make macos-deploy;
|
make macos-deploy;
|
||||||
fi
|
fi
|
||||||
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;
|
make linux-deploy;
|
||||||
fi
|
fi
|
||||||
|
|
10
.travis.yml
10
.travis.yml
|
@ -64,15 +64,15 @@ matrix:
|
||||||
before_install:
|
before_install:
|
||||||
- export CXX=${CXX_COMPILER}
|
- export CXX=${CXX_COMPILER}
|
||||||
- export CC=${C_COMPILER}
|
- export CC=${C_COMPILER}
|
||||||
|
# Use TRAVIS_TAG if defined, or the short commit SHA otherwise
|
||||||
|
- export VERSION=${TRAVIS_TAG:-$(git rev-parse --short HEAD)}
|
||||||
install:
|
install:
|
||||||
- ./.ci/install.sh
|
- ./.ci/install.sh
|
||||||
- export PATH=/usr/local/bin:${PATH}
|
- export PATH=/usr/local/bin:${PATH}
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- ./.ci/script.sh
|
- ./.ci/script.sh
|
||||||
# todo, use TRAVIS_TAG and fall back to TRAVIS_COMMIT if tag not definedS
|
- sed -i -e "s/VERSION_NAME_VALUE/${VERSION}/g" ./.ci/bintray-release.json || true
|
||||||
- sed -i -e "s/VERSION_NAME_VALUE/${TRAVIS_COMMIT}/g" ./.ci/bintray-release.json || true
|
|
||||||
- cp ./.ci/bintray-release.json .
|
- cp ./.ci/bintray-release.json .
|
||||||
deploy:
|
deploy:
|
||||||
- provider: bintray
|
- provider: bintray
|
||||||
|
@ -95,7 +95,7 @@ deploy:
|
||||||
secure: "JROFCxI1Dj0j8GKftCk1M16PovGmbCQb/i6JKm+YKWIhoYoMJBFl3TzhN0D0KlT8VeClZ0WV4MOom6elAkxlYTGR1kcoJ5ESt/AS0B1ULxq2exbmqzqJgJJBb65JVo4nglLHZPnUHOY5s/QGtg05nPeexcK8b3lFvhMRI+Y5jqX9i4FGsEBk6tG2OLfXB0odU8f6rhEeIGWgJw1LVyiTk3VoQcJtBi7Vsg3p4othMaLDlkVHsepNY+xSO14NbNpUjXSzYWZJEM9HqCOaOlAjZR5Q0Ad365TqN9zj6NOVwxEdN4Zl3/Ux838Or6TobhdhGjqqO2JmWt6C+xV4XJ9wX+8LPb+hYYVBrItp32g3grtW/e4nNsp4j3nm1P87kzKPxC4oAaskyn0dlwC4Vo3LH67beQiceAIuM9ywej4Zwr94+MeKjIVtqI6Qz7Tjlt1pFGI1lmfkKQOXiFlkwPbyCPV3smpJ1WSOC4Npkht6tFPBlLV2DFySYUMRAdH2RwBxWhjzwsSJlx/dEKUUL5yffKtg2tANM6aCCyXMEqEXXVkFe9e9ymPbGmmQuf56xo3rYQj5BcQWA9JHAancqLkxoR0rbRBBmai5qDQP7rBss/HR7Uec5xSnYkS6YYI9zpZ+FTfPa7lnVI3c8hj+ukua1EnsYytB8F8l95jrO8fnTxU="
|
secure: "JROFCxI1Dj0j8GKftCk1M16PovGmbCQb/i6JKm+YKWIhoYoMJBFl3TzhN0D0KlT8VeClZ0WV4MOom6elAkxlYTGR1kcoJ5ESt/AS0B1ULxq2exbmqzqJgJJBb65JVo4nglLHZPnUHOY5s/QGtg05nPeexcK8b3lFvhMRI+Y5jqX9i4FGsEBk6tG2OLfXB0odU8f6rhEeIGWgJw1LVyiTk3VoQcJtBi7Vsg3p4othMaLDlkVHsepNY+xSO14NbNpUjXSzYWZJEM9HqCOaOlAjZR5Q0Ad365TqN9zj6NOVwxEdN4Zl3/Ux838Or6TobhdhGjqqO2JmWt6C+xV4XJ9wX+8LPb+hYYVBrItp32g3grtW/e4nNsp4j3nm1P87kzKPxC4oAaskyn0dlwC4Vo3LH67beQiceAIuM9ywej4Zwr94+MeKjIVtqI6Qz7Tjlt1pFGI1lmfkKQOXiFlkwPbyCPV3smpJ1WSOC4Npkht6tFPBlLV2DFySYUMRAdH2RwBxWhjzwsSJlx/dEKUUL5yffKtg2tANM6aCCyXMEqEXXVkFe9e9ymPbGmmQuf56xo3rYQj5BcQWA9JHAancqLkxoR0rbRBBmai5qDQP7rBss/HR7Uec5xSnYkS6YYI9zpZ+FTfPa7lnVI3c8hj+ukua1EnsYytB8F8l95jrO8fnTxU="
|
||||||
file_glob: true
|
file_glob: true
|
||||||
file:
|
file:
|
||||||
- nheko-${TRAVIS_TAG}-x86_64.AppImage
|
- nheko-${VERSION}-x86_64.AppImage
|
||||||
on:
|
on:
|
||||||
condition: "$TRAVIS_OS_NAME == linux && $DEPLOYMENT == 1"
|
condition: "$TRAVIS_OS_NAME == linux && $DEPLOYMENT == 1"
|
||||||
repo: Nheko-Reborn/nheko
|
repo: Nheko-Reborn/nheko
|
||||||
|
@ -105,7 +105,7 @@ deploy:
|
||||||
provider: releases
|
provider: releases
|
||||||
api_key:
|
api_key:
|
||||||
secure: "JROFCxI1Dj0j8GKftCk1M16PovGmbCQb/i6JKm+YKWIhoYoMJBFl3TzhN0D0KlT8VeClZ0WV4MOom6elAkxlYTGR1kcoJ5ESt/AS0B1ULxq2exbmqzqJgJJBb65JVo4nglLHZPnUHOY5s/QGtg05nPeexcK8b3lFvhMRI+Y5jqX9i4FGsEBk6tG2OLfXB0odU8f6rhEeIGWgJw1LVyiTk3VoQcJtBi7Vsg3p4othMaLDlkVHsepNY+xSO14NbNpUjXSzYWZJEM9HqCOaOlAjZR5Q0Ad365TqN9zj6NOVwxEdN4Zl3/Ux838Or6TobhdhGjqqO2JmWt6C+xV4XJ9wX+8LPb+hYYVBrItp32g3grtW/e4nNsp4j3nm1P87kzKPxC4oAaskyn0dlwC4Vo3LH67beQiceAIuM9ywej4Zwr94+MeKjIVtqI6Qz7Tjlt1pFGI1lmfkKQOXiFlkwPbyCPV3smpJ1WSOC4Npkht6tFPBlLV2DFySYUMRAdH2RwBxWhjzwsSJlx/dEKUUL5yffKtg2tANM6aCCyXMEqEXXVkFe9e9ymPbGmmQuf56xo3rYQj5BcQWA9JHAancqLkxoR0rbRBBmai5qDQP7rBss/HR7Uec5xSnYkS6YYI9zpZ+FTfPa7lnVI3c8hj+ukua1EnsYytB8F8l95jrO8fnTxU="
|
secure: "JROFCxI1Dj0j8GKftCk1M16PovGmbCQb/i6JKm+YKWIhoYoMJBFl3TzhN0D0KlT8VeClZ0WV4MOom6elAkxlYTGR1kcoJ5ESt/AS0B1ULxq2exbmqzqJgJJBb65JVo4nglLHZPnUHOY5s/QGtg05nPeexcK8b3lFvhMRI+Y5jqX9i4FGsEBk6tG2OLfXB0odU8f6rhEeIGWgJw1LVyiTk3VoQcJtBi7Vsg3p4othMaLDlkVHsepNY+xSO14NbNpUjXSzYWZJEM9HqCOaOlAjZR5Q0Ad365TqN9zj6NOVwxEdN4Zl3/Ux838Or6TobhdhGjqqO2JmWt6C+xV4XJ9wX+8LPb+hYYVBrItp32g3grtW/e4nNsp4j3nm1P87kzKPxC4oAaskyn0dlwC4Vo3LH67beQiceAIuM9ywej4Zwr94+MeKjIVtqI6Qz7Tjlt1pFGI1lmfkKQOXiFlkwPbyCPV3smpJ1WSOC4Npkht6tFPBlLV2DFySYUMRAdH2RwBxWhjzwsSJlx/dEKUUL5yffKtg2tANM6aCCyXMEqEXXVkFe9e9ymPbGmmQuf56xo3rYQj5BcQWA9JHAancqLkxoR0rbRBBmai5qDQP7rBss/HR7Uec5xSnYkS6YYI9zpZ+FTfPa7lnVI3c8hj+ukua1EnsYytB8F8l95jrO8fnTxU="
|
||||||
file: nheko-${TRAVIS_TAG}.dmg
|
file: nheko-${VERSION}.dmg
|
||||||
on:
|
on:
|
||||||
condition: "$TRAVIS_OS_NAME == osx && $DEPLOYMENT == 1"
|
condition: "$TRAVIS_OS_NAME == osx && $DEPLOYMENT == 1"
|
||||||
repo: Nheko-Reborn/nheko
|
repo: Nheko-Reborn/nheko
|
||||||
|
|
Loading…
Reference in a new issue