From dc6a519780b6f38e3bc1123bf8fad1aa997edbb8 Mon Sep 17 00:00:00 2001 From: Luc Didry Date: Tue, 11 Dec 2018 22:03:23 +0100 Subject: [PATCH] [CI] Toot after uploading the apks on Nextcloud --- .gitlab-ci.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 687f7dae2..c8a1a89c2 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -8,6 +8,7 @@ before_script: stages: - build-and-test - tag + - toot .no-upload: &no-upload stage: build-and-test @@ -79,12 +80,15 @@ putApkOnTags: pouet-it: image: hatsoftwares/pouet-it-from-ci:latest - stage: tag + stage: toot + dependencies: + - putApkOnTags script: - cd /opt/pouet-it-from-ci # Make the project name first letter uppercase + - export NC_DOWNLOAD_URL="${NC_SHARE_URL}/?path=%2F${CI_COMMIT_TAG}%2F" - export project="$(tr '[:lower:]' '[:upper:]' <<< ${CI_PROJECT_NAME:0:1})${CI_PROJECT_NAME:1}" - - export MESSAGE=$(echo -e "I just released a new version of "'#'"${project}!""\n${CI_PROJECT_URL}/tags/${CI_COMMIT_TAG}") + - export MESSAGE=$(echo -e "I just released a new version of "'#'"${project}!""\n${CI_PROJECT_URL}/tags/${CI_COMMIT_TAG}\nYou can download the apks on ${NC_DOWNLOAD_URL}") - carton exec ./pouet-it-from-ci.pl only: - tags