Skip to content
This repository was archived by the owner on Sep 1, 2020. It is now read-only.

Commit 8630ff4

Browse files
committed
switch to deployment keys
1 parent cd7d883 commit 8630ff4

File tree

5 files changed

+15
-18
lines changed

5 files changed

+15
-18
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ env:
77

88
before_install:
99
- export PATH="$PATH:./vendor/bundle"
10+
- if [ "$TRAVIS_BRANCH" = "typelevel-readme" -a "$TRAVIS_PULL_REQUEST" = "false" ]; then bash scripts/decrypt-keys.sh; fi
1011

1112
install:
1213
- rvm use 2.2.3 --install --fuzzy
@@ -18,7 +19,7 @@ script:
1819
- sbt makeMicrosite
1920

2021
after_success:
21-
- ./deploy-microsite.sh
22+
- if [ "$TRAVIS_BRANCH" = "typelevel-readme" -a "$TRAVIS_PULL_REQUEST" = "false" ]; then bash scripts/publishMicrosite.sh; fi
2223

2324
branches:
2425
only:

deploy-microsite.sh

Lines changed: 0 additions & 17 deletions
This file was deleted.

scripts/decrypt-keys.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/sh
2+
3+
openssl aes-256-cbc -K $encrypted_53c898739c54_key -iv $encrypted_53c898739c54_iv -in travis-deploy-key.enc -out travis-deploy-key -d
4+
chmod 600 travis-deploy-key;
5+
cp travis-deploy-key ~/.ssh/id_rsa;

scripts/publishMicrosite.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
set -e
3+
4+
git config --global user.email "bot@typelevel.org"
5+
git config --global user.name "Typelevel Bot"
6+
git config --global push.default simple
7+
8+
sbt publishMicrosite

travis-deploy-key.enc

3.17 KB
Binary file not shown.

0 commit comments

Comments
 (0)