Skip to content

Commit ed890f9

Browse files
Autopush to gh-pages on commit (really, build) (#61)
1 parent cc3d33e commit ed890f9

File tree

3 files changed

+19
-4
lines changed

3 files changed

+19
-4
lines changed

.travis.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,14 @@ script:
1818
- make lint
1919
- make test
2020
- make e2e
21-
after_success:
22-
- make docs
23-
- echo "Disallow: /" >> docs/robots.txt
21+
before_deploy:
22+
- openssl aes-256-cbc -K $encrypted_a2e08d5c220e_key -iv $encrypted_a2e08d5c220e_iv -in deploy.enc -out /tmp/deploy -d
23+
- eval "$(ssh-agent -s)"
24+
- chmod 600 /tmp/deploy
25+
- ssh-add /tmp/deploy
26+
deploy:
27+
provider: script
28+
skip_cleanup: true
29+
script: make_docs.sh
30+
on:
31+
branch: master

deploy.enc

3.17 KB
Binary file not shown.

make_docs.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,12 @@ if [[ `git status --porcelain` ]]; then
66
exit 1
77
fi
88

9-
make docs
9+
[email protected]:Blizzard/node-rdkafka.git
10+
11+
# Get the most recent stuff if we don't have it
12+
git fetch $REPO gh-pages || exit $?
13+
14+
make docs || exit $?
1015

1116
# Get package version and save to variable
1217

@@ -44,4 +49,6 @@ git commit --author="$COMMIT_AUTHOR" -m "Updated docs for '$COMMIT_MESSAGE'"
4449

4550
rm -rf $TEMPDIR
4651

52+
git push $REPO gh-pages || exit $?
53+
4754
git checkout $CURRENT_BRANCH

0 commit comments

Comments
 (0)