mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 11:00:48 +03:00
Tweak S3 Upload settings
This commit is contained in:
parent
80bf3dfb5f
commit
eb2f444c37
4 changed files with 11 additions and 8 deletions
|
@ -49,7 +49,10 @@ done
|
||||||
|
|
||||||
chmod +x nheko-*x86_64.AppImage
|
chmod +x nheko-*x86_64.AppImage
|
||||||
|
|
||||||
if [ ! -z "$VERSION" ]; then
|
mkdir artifacts
|
||||||
|
cp nheko-*x86_64.AppImage artifacts/
|
||||||
|
|
||||||
|
if [ -n "$VERSION" ]; then
|
||||||
# commented out for now, as AppImage file appears to already contain the version.
|
# commented out for now, as AppImage file appears to already contain the version.
|
||||||
#mv nheko-*x86_64.AppImage nheko-${VERSION}-x86_64.AppImage
|
#mv nheko-*x86_64.AppImage nheko-${VERSION}-x86_64.AppImage
|
||||||
echo "nheko-${VERSION}-x86_64.AppImage"
|
echo "nheko-${VERSION}-x86_64.AppImage"
|
||||||
|
|
|
@ -25,6 +25,8 @@ PATH=/usr/local/opt/qt/bin/:${PATH}
|
||||||
|
|
||||||
dmgbuild -s ./.ci/macos/settings.json "Nheko" nheko.dmg
|
dmgbuild -s ./.ci/macos/settings.json "Nheko" nheko.dmg
|
||||||
|
|
||||||
if [ ! -z "$VERSION" ]; then
|
if [ -n "$VERSION" ]; then
|
||||||
mv nheko.dmg "nheko-${VERSION}.dmg"
|
mv nheko.dmg "nheko-${VERSION}.dmg"
|
||||||
|
mkdir artifacts
|
||||||
|
cp "nheko-${VERSION}.dmg" artifacts/
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -41,11 +41,11 @@ cmake --build build
|
||||||
if [ "$TRAVIS_OS_NAME" = "osx" ]; then
|
if [ "$TRAVIS_OS_NAME" = "osx" ]; then
|
||||||
make lint;
|
make lint;
|
||||||
|
|
||||||
if [ "$DEPLOYMENT" = 1 ] && [ ! -z "$VERSION" ] ; then
|
if [ "$DEPLOYMENT" = 1 ] && [ -n "$VERSION" ] ; then
|
||||||
make macos-deploy;
|
make macos-deploy;
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$TRAVIS_OS_NAME" = "linux" ] && [ "$DEPLOYMENT" = 1 ] && [ ! -z "$VERSION" ]; then
|
if [ "$TRAVIS_OS_NAME" = "linux" ] && [ "$DEPLOYMENT" = 1 ] && [ -n "$VERSION" ]; then
|
||||||
make linux-deploy;
|
make linux-deploy;
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -88,10 +88,8 @@ deploy:
|
||||||
detect_encoding: true
|
detect_encoding: true
|
||||||
cache_control: "max-age=31536000"
|
cache_control: "max-age=31536000"
|
||||||
skip_cleanup: true
|
skip_cleanup: true
|
||||||
file_glob: true
|
acl: public_read
|
||||||
file:
|
local_dir: artifacts
|
||||||
- nheko-${VERSION}-x86_64.AppImage
|
|
||||||
- nheko-${VERSION}.dmg
|
|
||||||
on:
|
on:
|
||||||
condition: "$DEPLOYMENT == 1"
|
condition: "$DEPLOYMENT == 1"
|
||||||
repo: Nheko-Reborn/nheko
|
repo: Nheko-Reborn/nheko
|
||||||
|
|
Loading…
Reference in a new issue