加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
generate_web_code.sh 625 Bytes
一键复制 编辑 原始数据 按行查看 历史
Diego Molina 提交于 2022-05-12 15:23 . [build] Avoiding nested directory
#!/usr/bin/env bash
# copy website to build
cp -R common/src/web build
# switch to gh-pages and copy the files
git checkout gh-pages || exit
# make sure that our local version is up to date.
git pull || exit
rm -rf web
mv build/web web
git add -A web
read -p "Do you want to commit the changes? (Y/n):" changes </dev/tty
if [ -z $changes ]; then
changes=Y
fi
case "$changes" in
Y | y) echo "" ;;
N | n) exit ;;
*) exit ;;
esac
echo "Committing changes"
git commit -am "updating test website code"
echo "pushing to origin gh-pages"
git push origin gh-pages
echo "switching back to trunk branch"
git checkout trunk
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化