File tree Expand file tree Collapse file tree 2 files changed +21
-4
lines changed Expand file tree Collapse file tree 2 files changed +21
-4
lines changed Original file line number Diff line number Diff line change @@ -20,4 +20,4 @@ deploy:
2020 secure : $TRAVIS_SECURE_API_KEY
2121after_success :
2222 - if [ "$TRAVIS_BRANCH" == "develop" ] ; then
23- if [ "$TRAVIS_PULL_REQUEST" == "true " ] ; then bash travis.sh ; fi ; fi
23+ if [ "$TRAVIS_PULL_REQUEST" == "false " ] ; then bash travis.sh ; fi ; fi
Original file line number Diff line number Diff line change 88git config --global user.name " $GIT_USER_NAME "
99git config --global user.email $GIT_USER_EMAIL
1010
11+ # Install the Heroku gem (or the Heroku toolbelt)
12+ gem install $PROVIDER
13+ # Add your Heroku git repo:
1114git remote rm $PROVIDER ;
1215git remote add $PROVIDER git@$PROVIDER .com:$PROVIDER_APP_NAME .git ;
16+ # Add your Heroku API key:
17+ export HEROKU_API_KEY=$HEROKU_API_KEY
18+ # Turn off warnings about SSH keys:
19+ echo " Host heroku.com" >> ~ /.ssh/config
20+ echo " StrictHostKeyChecking no" >> ~ /.ssh/config
21+ echo " CheckHostIP no" >> ~ /.ssh/config
22+ echo " UserKnownHostsFile=/dev/null" >> ~ /.ssh/config
23+ # Clear your current Heroku SSH keys:
24+ $PROVIDER keys:clear
25+ # Add a new SSH key to Heroku
26+ yes | $PROVIDER keys:add
1327
1428git add dist/ ;
15- git checkout -b $TRAVIS_BRANCH ;
29+ git checkout -b $NEW_TRAVIS_BRANCH ;
1630git commit -m " $TRAVIS_COMMIT_MESSAGE " ;
17- git push $PROVIDER $TRAVIS_BRANCH :PROVIDER_BRANCH ;
31+ # Push to Heroku!
32+ git fetch --all --unshallow
33+ yes | git push --force $PROVIDER $NEW_TRAVIS_BRANCH :$PROVIDER_BRANCH ;
1834
19- echo -e " yes" | ./travis.sh ; fi
35+
36+ # echo -e "yes" | ./travis.sh
You can’t perform that action at this time.
0 commit comments