Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

circle.yml: remove IP address #1301

Merged
merged 1 commit into from
May 7, 2019
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
19 changes: 9 additions & 10 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,15 @@ jobs:
name: "Generate PDF"
command: scripts/generate_pdf.sh

# - deploy:
# name: "Publish PDF"
# command: |
# sudo bash -c 'echo "119.188.128.5 uc.qbox.me" >> /etc/hosts';
# if [ "${CIRCLE_BRANCH}" == "master" ]; then
# 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
- deploy:
name: "Publish PDF"
command: |
if [ "${CIRCLE_BRANCH}" == "master" ]; then
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