Watch 1 Star 0 Fork 1

xu81.com / rustlang-cnMIT

Create your Gitee Account
Explore and code with more than 5 million developers,Free private repositories !:)
Sign up
Rust中文文档中心 spread retract

Clone or download
.deploy.sh 507 Bytes
Copy Edit Web IDE Raw Blame History
krircc authored 2018-10-07 11:50 . travis
#!/usr/bin/env sh
# 确保脚本抛出遇到的错误
set -e
# 生成静态文件
npm run build
if [[ "$TRAVIS_OS_NAME" == "linux" && "$TRAVIS_PULL_REQUEST" = "false" && "$TRAVIS_BRANCH" == "master" ]]; then
# cp CNAME docs/.vuepress/dist
git clone https://github.com/davisp/ghp-import.git &&
./ghp-import/ghp_import.py -n -p -f -m "Documentation upload" -b master -r https://"$RUST_TOKEN"@github.com/rustlang-cn/rustlang-cn.github.io.git docs/.vuepress/dist &&
echo "Uploaded documentation"
fi

Comment ( 0 )

Sign in for post a comment

1
https://gitee.com/viperasi/rustlang-cn.git
git@gitee.com:viperasi/rustlang-cn.git
viperasi
rustlang-cn
rustlang-cn
master

Search