From 47b24470e6c70122e8fd1ceadaf2e017f94ece9a Mon Sep 17 00:00:00 2001 From: opyale Date: Thu, 9 Jul 2020 13:29:36 +0200 Subject: [PATCH] Improving CI. (#581) Improving CI. Co-authored-by: opyale Reviewed-on: https://codeberg.org/gitnex/GitNex/pulls/581 Reviewed-by: M M Arif --- .gitlab-ci.yml | 7 ++++--- README.md | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 58f0f291..bb415626 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -36,7 +36,7 @@ sign: artifacts: paths: - signed.apk - expire_in: 30 minutes + expire_in: 15 minutes latest: image: tutum/curl @@ -46,7 +46,7 @@ latest: variables: WEBDAV_USERNAME: "GitNexBot" PLUGIN_FILE: "signed.apk" - PLUGIN_DESTINATION: "https://cloud.swatian.com/remote.php/dav/files/GitNexBot/GitNex-Builds/latest.apk" + PLUGIN_DESTINATION: "https://cloud.swatian.com/remote.php/dav/files/GitNexBot/gitnex/builds/latest.apk" script: - curl -T "$PLUGIN_FILE" -u "$WEBDAV_USERNAME":"$WEBDAV_PASSWORD" "$PLUGIN_DESTINATION" @@ -59,4 +59,5 @@ release: WEBDAV_USERNAME: "GitNexBot" PLUGIN_FILE: "signed.apk" script: - - curl -T "$PLUGIN_FILE" -u "$WEBDAV_USERNAME":"$WEBDAV_PASSWORD" 'https://cloud.swatian.com/remote.php/dav/files/GitNexBot/GitNex-Builds/releases/'"$CI_COMMIT_REF_NAME"'.apk' + - [[ $CI_COMMIT_REF_NAME == *"-rc"* ]] && echo "Upload blocked. Build seems to be a release candidate." && exit 0 + - curl -T "$PLUGIN_FILE" -u "$WEBDAV_USERNAME":"$WEBDAV_PASSWORD" 'https://cloud.swatian.com/remote.php/dav/files/GitNexBot/gitnex/releases/'"$CI_COMMIT_REF_NAME"'.apk' diff --git a/README.md b/README.md index bbf1c3ea..0e4ce586 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ GitNex is licensed under GPLv3 License. See the LICENSE file for the full licens [Get it on Google Play](https://play.google.com/store/apps/details?id=org.mian.gitnex) [Download APK](https://cloud.swatian.com/s/QoDFzMxmnf2FfYw) -Download latest build from master: [https://cloud.swatian.com/s/Cq592xGEfnsGAAW](https://cloud.swatian.com/s/Cq592xGEfnsGAAW) +Download the latest build from master and old releases [here](https://cloud.swatian.com/s/DN7E5xxtaw4fRbE). ## Note about Gitea version Please make sure that you are on latest stable release or later for better app experience.