mirror of
https://github.com/LearnOpenGL-CN/LearnOpenGL-CN.git
synced 2025-08-22 20:25:28 +08:00
22 lines
490 B
YAML
22 lines
490 B
YAML
language: python
|
|
|
|
python:
|
|
- 3.4
|
|
|
|
install:
|
|
- pip install mkdocs
|
|
- python setup.py install
|
|
|
|
script:
|
|
- mkdocs build --clean
|
|
|
|
after_success: |
|
|
if [ -n "$GITHUB_API_KEY" ]; then
|
|
cd "$TRAVIS_BUILD_DIR"
|
|
cd site
|
|
git init
|
|
git add .
|
|
git -c user.name=$GITHUB_MEOWJ_NAME -c user.email=$GITHUB_MEOWJ_EMAIL commit -m "Auto Deployment"
|
|
git push -f -q https://Meow-J:$GITHUB_API_KEY@github.com/LearnOpenGL-CN/learnopengl-cn.github.io master
|
|
cd "$TRAVIS_BUILD_DIR"
|
|
fi |