13 Star 235 Fork 69

hu-snail / vue3-admin-element-template

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
Clone or Download
deploy-gh.sh 690 Bytes
Copy Edit Raw Blame History
#!/usr/bin/env sh
# 确保脚本抛出遇到的错误
set -e
# 生成静态文件
yarn build
# 进入生成的文件夹
cd dist
# 如果是发布到自定义域名
# echo 'www.example.com' > CNAME
git init
git add -A
git commit -m 'deploy'
# 如果发布到 https://<USERNAME>.github.io
# git push -f git@github.com:<USERNAME>/<USERNAME>.github.io.git master
# 如果发布到 https://<USERNAME>.github.io/<REPO>
# git push -f git@github.com:<USERNAME>/<REPO>.git master:gh-pages
# 把上面的 <USERNAME> 换成你自己的 Github 用户名,<REPO> 换成仓库名,比如我这里就是:
git push -f git@github.com:hu-snail/vue3-admin-element-template.git master:gh-pages
cd -
JavaScript
1
https://gitee.com/hu-snail/vue3-admin-element-template.git
git@gitee.com:hu-snail/vue3-admin-element-template.git
hu-snail
vue3-admin-element-template
vue3-admin-element-template
master

Search

53164aa7 5694891 3bd8fe86 5694891