diff --git a/.travis-generate-docs.sh b/.travis-generate-docs.sh index 48510e98..25670ae3 100755 --- a/.travis-generate-docs.sh +++ b/.travis-generate-docs.sh @@ -4,10 +4,18 @@ echo "Generating docs with doxygen..." doxygen +mkdir -p ~/.ssh +cat <> ~/.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 * diff --git a/.travis-github.enc b/.travis-github.enc new file mode 100644 index 00000000..39bb04f8 Binary files /dev/null and b/.travis-github.enc differ diff --git a/.travis.yml b/.travis.yml index 86bd8b89..ed6e3c1f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,7 +6,7 @@ env: matrix: - CFGFLAGS= MYCXXFLAGS= MYLDFLAGS= global: - secure: <> + - 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: