Skip to content

Commit 83e6a7d

Browse files
author
Wallace Breza
committed
Updated after_success block to push tags for each successfull build
1 parent 8b34e9a commit 83e6a7d

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.travis.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,15 @@ node_js:
44
before_script:
55
- npm install
66
script: gulp test
7+
after_success:
8+
# CREATE GIT TAG
9+
- git config --global user.email "[email protected]"
10+
- git config --global user.name "Travis CI"
11+
- export GIT_TAG=build-$TRAVIS_BRANCH-$(date -u "+%Y-%m-%d")-$TRAVIS_BUILD_NUMBER
12+
- echo -n $GIT_TAG > public/version
13+
- git commit -m "Set build VERSION number" public/version
14+
- git tag $GIT_TAG -a -m "Generated tag from TravisCI build $TRAVIS_BUILD_NUMBER"
15+
- git push --quiet https://[email protected]/Microsoft/PowerBI-JavaScript $GIT_TAG > /dev/null 2>&1
716
deploy:
817
provider: releases
918
api_key:
@@ -16,3 +25,6 @@ deploy:
1625
skip_cleanup: true
1726
on:
1827
tags: true
28+
branches:
29+
except:
30+
- /^build-[0-9a-z\-]*/

0 commit comments

Comments
 (0)