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

This commit is contained in:
Alexey Sokolov
2014-04-21 00:05:53 +01:00
parent ab0f6d941c
commit 6db563f4fd
3 changed files with 11 additions and 2 deletions
+9 -1
View File
@@ -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 *
Binary file not shown.
+2 -1
View File
@@ -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: