File tree Expand file tree Collapse file tree 2 files changed +46
-0
lines changed
Expand file tree Collapse file tree 2 files changed +46
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Gitee自动部署2
2+
3+ on :
4+ push :
5+ branches : [ typescript_dev ]
6+
7+ jobs :
8+ build :
9+ runs-on : ubuntu-latest
10+ steps :
11+ - name : Sync to Gitee
12+ uses : wearerequired/git-mirror-action@master
13+ env :
14+ # 注意在 Settings->Secrets 配置 GITEE_RSA_PRIVATE_KEY
15+ SSH_PRIVATE_KEY : ${{ secrets.GITEE_RSA_PRIVATE_KEY }}
16+ with :
17+ # 注意替换为你的 GitHub 源仓库地址
18+ source-repo : " git@github.com:weizhanzhan/antd-vue-admin.git"
19+ # 注意替换为你的 Gitee 目标仓库地址
20+ destination-repo : " git@gitee.com:zhan961023/vue-admin-preview.git"
21+
22+ - name : Build Gitee Pages
23+ uses : yanglbme/gitee-pages-action@master
24+ with :
25+ # 注意替换为你的 Gitee 用户名
26+ gitee-username : zhan961023
27+ # 注意在 Settings->Secrets 配置 GITEE_PASSWORD
28+ gitee-password : ${{ secrets.GITEE_PASSWORD }}
29+ # 注意替换为你的 Gitee 仓库
30+ gitee-repo : zhan961023/vue-admin-preview
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env sh
2+
3+ # 确保脚本抛出遇到的错误
4+ set -e
5+
6+ # 生成静态文件
7+ npm run build
8+
9+ git init
10+ git add -A
11+ git commit -m ' 功能开发细节优化'
12+
13+ # 如果发布到 https://<USERNAME>.github.io
14+ git push -f git@github.com:weizhanzhan/antd-vue-admin.git typescript_dev
15+
16+ cd -
You can’t perform that action at this time.
0 commit comments