Merge branch 'pouet-after-apk-upload' into 'develop'
[CI] Toot after uploading the apks on Nextcloud See merge request tom79/mastalab!1028
This commit is contained in:
commit
584aab6430
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue