fix script that upload AppImage to go in correct path

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
This commit is contained in:
Matthieu Gallien 2022-09-05 22:52:40 +02:00 committed by Matthieu Gallien
parent eb4e8adf9b
commit b484ba3726
2 changed files with 3 additions and 2 deletions

View File

@ -106,7 +106,7 @@ steps:
from_secret: CI_UPLOAD_GIT_USERNAME
commands:
- BUILDNR=$DRONE_BUILD_NUMBER VERSION_SUFFIX=$DRONE_PULL_REQUEST BUILD_UPDATER=ON DESKTOP_CLIENT_ROOT=$DRONE_WORKSPACE /bin/bash -c "./admin/linux/build-appimage.sh"
- /bin/bash -c "./admin/linux/upload-appimage.sh" || echo "Upload failed, however this is an optional step."
- DESKTOP_CLIENT_ROOT=$DRONE_WORKSPACE /bin/bash -c "./admin/linux/upload-appimage.sh" || echo "Upload failed, however this is an optional step."
trigger:
branch:
- master

View File

@ -5,6 +5,7 @@ export BUILD=${DRONE_BUILD_NUMBER}
export PR=${DRONE_PULL_REQUEST}
export GIT_USERNAME=${CI_UPLOAD_GIT_USERNAME}
export GIT_TOKEN=${CI_UPLOAD_GIT_TOKEN}
export DESKTOP_CLIENT_ROOT=${DESKTOP_CLIENT_ROOT:-/home/user}
# Defaults
export GIT_REPO=ci-builds
@ -20,7 +21,7 @@ if [ $TAG_NAME != "master" ]; then
RELEASE_BODY="nextcloud/desktop#$PR"
fi
cd /build
cd ${DESKTOP_CLIENT_ROOT}
# AppImage
export APPIMAGE=$(readlink -f ./Nextcloud*.AppImage)