|
8 | 8 | git config --global user.name "$GIT_USER_NAME"
|
9 | 9 | git config --global user.email $GIT_USER_EMAIL
|
10 | 10 |
|
11 |
| -git remote rm $PROVIDER ; |
12 |
| -git remote add $PROVIDER git@$PROVIDER.com:$PROVIDER_APP_NAME.git ; |
| 11 | +# Install the Heroku gem (or the Heroku toolbelt) |
| 12 | +- gem install $PROVIDER |
| 13 | +# Add your Heroku git repo: |
| 14 | +- git remote rm $PROVIDER ; |
| 15 | +- git 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 |
13 | 27 |
|
14 |
| -git add dist/ ; |
15 |
| -git checkout -b $NEW_TRAVIS_BRANCH ; |
16 |
| -git commit -m "$TRAVIS_COMMIT_MESSAGE" ; |
17 |
| -git push $PROVIDER $NEW_TRAVIS_BRANCH:$PROVIDER_BRANCH ; |
| 28 | +- git add dist/ ; |
| 29 | +- git checkout -b $NEW_TRAVIS_BRANCH ; |
| 30 | +- git commit -m "$TRAVIS_COMMIT_MESSAGE" ; |
| 31 | +# Push to Heroku! |
| 32 | +- yes | git push $PROVIDER $NEW_TRAVIS_BRANCH:$PROVIDER_BRANCH ; |
18 | 33 |
|
19 |
| -echo -e "yes" | ./travis.sh ; fi |
| 34 | + |
| 35 | +# echo -e "yes" | ./travis.sh |
0 commit comments