File tree Expand file tree Collapse file tree 3 files changed +4
-9
lines changed Expand file tree Collapse file tree 3 files changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -53,8 +53,7 @@ function run {
53
53
echo " -- Pushing bower-ionic"
54
54
cd $BOWER_DIR
55
55
56
- git push -q origin master
57
- git push -q origin v$VERSION
56
+ git push -q --tags origin master
58
57
59
58
echo " -- Published bower-ionic to v$VERSION successfully!"
60
59
Original file line number Diff line number Diff line change @@ -43,8 +43,7 @@ function publish {
43
43
44
44
VERSION=$( readJsonProp " package.json" " version" )
45
45
46
- git push origin master
47
- git push origin v$VERSION
46
+ git push --tags origin master
48
47
49
48
echo " -- Version published as v$VERSION successfully!"
50
49
Original file line number Diff line number Diff line change @@ -40,17 +40,14 @@ function run {
40
40
# TODO Saucelabs settings need more tweaking before it becomes stable (sometimes it fails to connect)
41
41
# grunt karma:sauce --reporters=dots
42
42
43
- GIT_IS_MASTER=$( git symbolic-ref HEAD | grep master || echo false)
44
- if [[ " $GIT_IS_MASTER " == " false" ]]; then
45
- echo " -- We are not on branch master. Will not push build out."
43
+ if [[ " $TRAVIS_BRANCH " != " master" ]]; then
44
+ echo " -- We are not on branch master, instead we are on branch $TRAVIS_BRANCH . Will not push build out."
46
45
exit 0
47
46
fi
48
47
if [[ " $TRAVIS_PULL_REQUEST " != " false" ]]; then
49
48
echo " -- This is a pull request build; will not push build out."
50
49
exit 0
51
50
fi
52
- echo ' done'
53
- exit 0
54
51
55
52
# If latest commit message starts with 'chore(release):' it's a release
56
53
COMMIT_MESSAGE=$( git log --format=%B -n 1 $TRAVIS_COMMIT | head -c 15)
You can’t perform that action at this time.
0 commit comments