[CI] Toot after uploading the apks on Nextcloud

This commit is contained in:
Luc Didry 2018-12-11 22:03:23 +01:00
parent 821cfa1aa9
commit dc6a519780
No known key found for this signature in database
GPG Key ID: EA868E12D0257E3C
1 changed files with 6 additions and 2 deletions

View File

@ -8,6 +8,7 @@ before_script:
stages: stages:
- build-and-test - build-and-test
- tag - tag
- toot
.no-upload: &no-upload .no-upload: &no-upload
stage: build-and-test stage: build-and-test
@ -79,12 +80,15 @@ putApkOnTags:
pouet-it: pouet-it:
image: hatsoftwares/pouet-it-from-ci:latest image: hatsoftwares/pouet-it-from-ci:latest
stage: tag stage: toot
dependencies:
- putApkOnTags
script: script:
- cd /opt/pouet-it-from-ci - cd /opt/pouet-it-from-ci
# Make the project name first letter uppercase # 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 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 - carton exec ./pouet-it-from-ci.pl
only: only:
- tags - tags