CI/CD Improvement - Create a release with tag when we merge master (#4991)

* Create a release with tag when we merge master

* Add release name with version
This commit is contained in:
Maurizio Vitale 2019-08-15 13:31:11 +01:00 committed by Eugenio Romano
parent 9873e9952a
commit e65a1db7e9

View File

@ -82,6 +82,22 @@ jobs:
script: script:
./scripts/travis/e2e/process-services-cloud-e2e.sh ./scripts/travis/e2e/process-services-cloud-e2e.sh
before_deploy:
# Set up git user name and tag this commit
- git config --local user.name "Alfresco"
- export TRAVIS_TAG=$(cat package.json | grep version | head -1 | awk -F= "{ print $2 }" | sed 's/[version:,\",]//g' | tr -d '[[:space:]]')
- echo "Create tag:" $TRAVIS_TAG
- git tag $TRAVIS_TAG
deploy:
provider: releases
api_key: $GITHUB_TOKEN
name: $TRAVIS_TAG
body: "Add the release note"
skip_cleanup: true
on:
branch: master
# Send coverage data to codecov # Send coverage data to codecov
after_success: after_success:
bash <(curl -s https://codecov.io/bash) -X gcov bash <(curl -s https://codecov.io/bash) -X gcov