diff options
author | Michael Schuster <michael@schuster.ms> | 2020-07-19 08:51:24 +0300 |
---|---|---|
committer | Michael Schuster <michael@schuster.ms> | 2020-07-20 18:11:33 +0300 |
commit | c3f5a9b9cc0c2931c79e12509f3e3d17b713a843 (patch) | |
tree | 35e18156e2ed180a7d7b78356977496d1bfa50f4 /.drone.yml | |
parent | 6ab55eddae26ff30b87b69b802945a745235e7e2 (diff) |
Drone: Upload AppImage to GitHub using nextcloud-desktop-bot
Uploading AppImage's to transfer.sh often fail and cause the CI to wait for
the 15 minutes timeout.
This new approach uses a bot user to create releases in a dedicated ci-builds
repository. Each PR (or master) will get a dedicated release with the AppImage
supplied as a release asset. Older assets will be deleted prior uploading the
recent build.
The bot will then (in case of a PR) create a comment in the PR, containing the
download link.
Home of the CI releases: https://github.com/nextcloud-desktop-bot/ci-builds/releases
Inspired by: https://github.com/nextcloud/android/blob/master/scripts/uploadArtifact.sh
Signed-off-by: Michael Schuster <michael@schuster.ms>
Diffstat (limited to '.drone.yml')
-rw-r--r-- | .drone.yml | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/.drone.yml b/.drone.yml index 1fa660a7b..fbb311e52 100644 --- a/.drone.yml +++ b/.drone.yml @@ -104,9 +104,14 @@ name: AppImage steps: - name: build image: nextcloudci/client-5.12:client-5.12-7 + environment: + CI_UPLOAD_GIT_TOKEN: + from_secret: CI_UPLOAD_GIT_TOKEN + CI_UPLOAD_GIT_USERNAME: + from_secret: CI_UPLOAD_GIT_USERNAME commands: - /bin/bash -c "./admin/linux/build-appimage.sh" - - /bin/bash -c "./admin/linux/upload-appimage.sh" + - /bin/bash -c "./admin/linux/upload-appimage.sh" || echo "Upload failed, however this is an optional step." trigger: branch: - master |