diff options
Diffstat (limited to 'util/travis_push.sh')
| -rw-r--r-- | util/travis_push.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/util/travis_push.sh b/util/travis_push.sh new file mode 100644 index 000000000..7eea88b14 --- /dev/null +++ b/util/travis_push.sh | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | # Use this by sourcing it in your script. | ||
| 2 | |||
| 3 | TRAVIS_BRANCH="${TRAVIS_BRANCH:master}" | ||
| 4 | TRAVIS_PULL_REQUEST="${TRAVIS_PULL_REQUEST:false}" | ||
| 5 | TRAVIS_COMMIT_MESSAGE="${TRAVIS_COMMIT_MESSAGE:-none}" | ||
| 6 | TRAVIS_COMMIT_RANGE="${TRAVIS_COMMIT_RANGE:-HEAD~1..HEAD}" | ||
| 7 | |||
| 8 | git config --global user.name "QMK Bot" | ||
| 9 | git config --global user.email "hello@qmk.fm" | ||
| 10 | |||
| 11 | openssl aes-256-cbc -K $encrypted_b0ee987fd0fc_key -iv $encrypted_b0ee987fd0fc_iv -in secrets.tar.enc -out secrets.tar -d | ||
| 12 | tar xvf secrets.tar | ||
| 13 | |||
| 14 | chmod 600 id_rsa_qmk_firmware | ||
| 15 | chmod 600 id_rsa_qmk.fm | ||
| 16 | eval `ssh-agent -s` | ||
| 17 | ssh-add id_rsa_qmk_firmware | ||
