1 Star 0 Fork 0

github / okio

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
deploy_javadoc.sh 782 Bytes
一键复制 编辑 原始数据 按行查看 历史
lichen 提交于 2019-01-16 20:10 . init push
#!/bin/bash
set -ex
REPO="git@github.com:square/okio.git"
GROUP_ID="com.squareup.okio"
ARTIFACT_ID="okio"
DIR=temp-clone
# Delete any existing temporary website clone
rm -rf $DIR
# Clone the current repo into temp folder
git clone $REPO $DIR
# Move working directory into temp folder
cd $DIR
# Checkout and track the gh-pages branch
git checkout -t origin/gh-pages
# Delete everything
rm -rf *
# Download the latest javadoc
curl -L "https://search.maven.org/remote_content?g=$GROUP_ID&a=$ARTIFACT_ID&v=LATEST&c=javadoc" > javadoc.zip
unzip javadoc.zip
rm javadoc.zip
# Stage all files in git and create a commit
git add .
git add -u
git commit -m "Website at $(date)"
# Push the new files up to GitHub
git push origin gh-pages
# Delete our temp folder
cd ..
rm -rf $DIR
Java
1
https://gitee.com/githubSuperLi/okio.git
git@gitee.com:githubSuperLi/okio.git
githubSuperLi
okio
okio
master

搜索帮助