mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
improve travis conf for avoid multiple tag
This commit is contained in:
+6
-7
@@ -4,7 +4,6 @@ git:
|
|||||||
|
|
||||||
language: node_js
|
language: node_js
|
||||||
dist: trusty
|
dist: trusty
|
||||||
sudo: required
|
|
||||||
node_js:
|
node_js:
|
||||||
# Use the explicit NodeJS LTS version 8.9.4 to avoid any automatic upgrade of the version.
|
# Use the explicit NodeJS LTS version 8.9.4 to avoid any automatic upgrade of the version.
|
||||||
- '10.16.0'
|
- '10.16.0'
|
||||||
@@ -129,18 +128,18 @@ jobs:
|
|||||||
|
|
||||||
|
|
||||||
before_deploy:
|
before_deploy:
|
||||||
# Set up git user name and tag this commit
|
if ![[ $TRAVIS_TAG ]]; then
|
||||||
- git config --local user.name "Alfresco"
|
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:]]')
|
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
|
echo "Create tag:" $TRAVIS_TAG
|
||||||
- git tag $TRAVIS_TAG
|
git tag $TRAVIS_TAG
|
||||||
|
fi
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
provider: releases
|
provider: releases
|
||||||
api_key: $GITHUB_TOKEN
|
api_key: $GITHUB_TOKEN
|
||||||
name: $TRAVIS_TAG
|
name: $TRAVIS_TAG
|
||||||
body: "Add the release note"
|
body: "Add the release note"
|
||||||
skip_cleanup: true
|
|
||||||
on:
|
on:
|
||||||
branch: master
|
branch: master
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user