mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-26 17:24:56 +00:00
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:
parent
9873e9952a
commit
e65a1db7e9
16
.travis.yml
16
.travis.yml
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user