Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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"
Expand Down