diff --git a/circle.yml b/circle.yml index eb3898e8d702..cdd7f0cf1bae 100644 --- a/circle.yml +++ b/circle.yml @@ -5,6 +5,10 @@ jobs: docker: - image: andelf/doc-build:0.1.9 working_directory: ~/pingcap/docs-cn + branches: + only: + - master + - website-preview steps: - checkout @@ -23,10 +27,13 @@ jobs: - deploy: name: "Publish PDF" command: | + sudo bash -c 'echo "119.188.128.5 uc.qbox.me" >> /etc/hosts'; if [ "${CIRCLE_BRANCH}" == "master" ]; then - sudo bash -c 'echo "119.188.128.5 uc.qbox.me" >> /etc/hosts'; python3 scripts/upload.py output.pdf tidb-manual-cn.pdf; fi + if [ "${CIRCLE_BRANCH}" == "website-preview" ]; then + python3 scripts/upload.py output.pdf tidb-manual-cn-preview.pdf; + fi - run: name: "Copy Generated PDF"