Skip to content

Commit a78c4d6

Browse files
Merge pull request patternfly#271 from dlabrecq/PTNFLY-travis
Added patternfly-build@redhat.com ML.
2 parents 6924987 + fabc7f3 commit a78c4d6

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.travis.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,7 @@ deploy:
2424
skip_cleanup: true
2525
on:
2626
tags: true
27+
28+
notifications:
29+
email:
30+
- patternfly-build@redhat.com

scripts/publish.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@ set -o errexit -o nounset
55
if [ -z "$TRAVIS_TAG" -a "$TRAVIS_BRANCH" != "master" ]
66
then
77
echo "This commit was made against $TRAVIS_BRANCH and not the master or tag! Do not deploy!"
8-
exit 0
8+
exit 1
99
fi
1010

1111
# User info
1212
git config user.name "Admin"
13-
git config user.email "angular-patternfly@redhat.com"
13+
git config user.email "patternfly-build@redhat.com"
1414
git config --global push.default simple
1515

1616
# Add upstream authentication token
17-
git remote add upstream https://$AUTH_TOKEN@github.com/patternfly/angular-patternfly.git
17+
git remote add upstream https://$AUTH_TOKEN@github.com/$TRAVIS_REPO_SLUG.git
1818

1919
# Commit generated files
2020
git add dist --force
@@ -23,7 +23,7 @@ git commit -m "Added files generated by Travis build"
2323
# Push to releases branch
2424
if [ -z "$TRAVIS_TAG" ]
2525
then
26-
git push upstream master:releases --force -v
26+
git push upstream $TRAVIS_BRANCH:$TRAVIS_BRANCH-dist --force -v
2727
fi
2828

2929
exit $?

0 commit comments

Comments
 (0)