Skip to content

Commit 7bafff1

Browse files
committed
chore: add GitHub deploy key
1 parent fbd54da commit 7bafff1

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.travis.yml

+7
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@ node_js:
1010
- '10'
1111
- '12'
1212
script: npm run validate
13+
before_install:
14+
# See: https://github.com/semantic-release/semantic-release/blob/master/docs/03-recipes/git-auth-ssh-keys.md
15+
- openssl aes-256-cbc -K $encrypted_c1ac1ba52366_key -iv $encrypted_c1ac1ba52366_iv -in github-deploy-key.enc -out /tmp/github-deploy-key -d
16+
- chmod 600 /tmp/github-deploy-key
17+
- echo 'echo ${SSH_PASSPHRASE}' > /tmp/askpass && chmod +x /tmp/askpass
18+
- eval "$(ssh-agent -s)"
19+
- DISPLAY=":0.0" SSH_ASKPASS="/tmp/askpass" setsid ssh-add /tmp/github-deploy-key < /dev/null
1320
after_success: node src travis-after-success
1421
branches:
1522
only:

github-deploy-key.enc

3.36 KB
Binary file not shown.

0 commit comments

Comments
 (0)