Browse files

Travis: push docs to github.com/znc/docs

  • Loading branch information...
1 parent ab0f6d9 commit 6db563f4fd646eac3a367511497060b622cfd982 @DarthGandalf DarthGandalf committed Apr 21, 2014
Showing with 11 additions and 2 deletions.
  1. +9 −1 .travis-generate-docs.sh
  2. BIN .travis-github.enc
  3. +2 −1 .travis.yml
View
10 .travis-generate-docs.sh
@@ -4,10 +4,18 @@ echo "Generating docs with doxygen..."
doxygen
+mkdir -p ~/.ssh
+cat <<EOF >> ~/.ssh/config
+Host znc-docs
+HostName github.com
+User git
+IdentityFile ~/znc-docs-key
+EOF
+
cd "$HOME"
git config --global user.email "travis@travis-ci.org"
git config --global user.name "travis-ci"
-git clone --branch=gh-pages https://${GH_TOKEN}@github.com/znc/znc gh-pages || exit 1
+git clone --branch=gh-pages znc-docs:znc/docs.git gh-pages || exit 1
cd gh-pages
git rm -rf *
View
BIN .travis-github.enc
Binary file not shown.
View
3 .travis.yml
@@ -6,7 +6,7 @@ env:
matrix:
- CFGFLAGS= MYCXXFLAGS= MYLDFLAGS=
global:
- secure: <<TOKEN>>
+ - secure: "Rfoqtksz9rPuC2MszbwYRFarHGQuD2rrRV+cxNLwU9fBaWRfdhoJZKt+LqIUv/w84/Oz24gp1ulfW4jSwrfIjfG1ER/glkV5TcQOKjlhRVwjSFW8/9lZiZgqHVX5QiEqdrIeVOBLGQucQWcUb/vxxEZua4qIAiescBCi9s7AfkA="
matrix:
include:
- compiler: clang
@@ -37,6 +37,7 @@ after_success:
- |
if [ "$BUILD_LEADER" == "YES" ] && [ "$BUILD_AGGREGATE_STATUS" == "others_succeeded" ] && [ "$TRAVIS_REPO_SLUG" == "znc/znc" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_BRANCH" == "master" ]; then
echo "All builds passed!"
+ openssl aes-256-cbc -d -in .travis-github.enc -out ~/znc-docs-key -k ${SECRET_KEY}
./.travis-generate-docs.sh
fi
notifications:

3 comments on commit 6db563f

@kylef
znc member

Maybe these new files should be deleted in make-tarball.sh so tarballs don't include them?

@DarthGandalf
znc member

@kylef that won't help with nightlies :(

@DarthGandalf
znc member

But done too :)

Please sign in to comment.