This action will force synchronization from turnon/db-tutorial, which will overwrite any changes that you have made since you forked the repository, and can not be recovered!!!
Synchronous operation will process in the background and will refresh the page when finishing processing. Please be patient.
#!/usr/bin/env sh# ------------------------------------------------------------------------------# gh-pages 部署脚本# @author <a href="mailto:forbreak@163.com">Zhang Peng</a># @since 2020年2月10日# ------------------------------------------------------------------------------# 装载其它库ROOT_DIR=$(cd $(dirname 0ドル)/..pwd)# 确保脚本抛出遇到的错误set -e# 生成静态文件npm run build# 进入生成的文件夹cd ${ROOT_DIR}/docs/.temp# 如果是发布到自定义域名# echo 'www.example.com' > CNAMEif [[ ${GITHUB_TOKEN} && ${GITEE_TOKEN} ]]; thenmsg='自动部署'GITHUB_URL=https://dunwu:${GITHUB_TOKEN}@github.com/dunwu/db-tutorial.gitGITEE_URL=https://turnon:${GITEE_TOKEN}@gitee.com/turnon/db-tutorial.gitgit config --global user.name "dunwu"git config --global user.email "forbreak@163.com"elsemsg='手动部署'GITHUB_URL=git@github.com:dunwu/db-tutorial.gitGITEE_URL=git@gitee.com:turnon/db-tutorial.gitfigit initgit add -Agit commit -m "${msg}"# 推送到github gh-pages分支git push -f "${GITHUB_URL}" master:gh-pagesgit push -f "${GITEE_URL}" master:gh-pagescd -rm -rf ${ROOT_DIR}/docs/.temp
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。