1
0
mirror of https://github.com/LearnOpenGL-CN/LearnOpenGL-CN.git synced 2025-08-23 04:35:28 +08:00

Auto deployment

This commit is contained in:
Meow J
2016-07-08 15:40:28 +08:00
parent a473e85e73
commit 554056c199

View File

@@ -8,7 +8,7 @@ install:
- python setup.py install - python setup.py install
script: script:
- mkdocs build - mkdocs build --clean
after_success: | after_success: |
if [ -n "$GITHUB_API_KEY" ]; then if [ -n "$GITHUB_API_KEY" ]; then
@@ -17,6 +17,6 @@ after_success: |
git init git init
git add . git add .
git -c user.name='travis' -c user.email='travis' commit -m "update" git -c user.name='travis' -c user.email='travis' commit -m "update"
git push -f -q https://Meow-J:$GITHUB_API_KEY@github.com/LearnOpenGL-CN/learnopengl-cn.github.io master &2>/dev/null git push -f -q https://Meow-J:$GITHUB_API_KEY@github.com/LearnOpenGL-CN/learnopengl-cn.github.io master
cd "$TRAVIS_BUILD_DIR" cd "$TRAVIS_BUILD_DIR"
fi fi