File tree Expand file tree Collapse file tree 3 files changed +143
-1685
lines changed
Expand file tree Collapse file tree 3 files changed +143
-1685
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ permissions:
2323 id-token : write
2424
2525jobs :
26- # # 部署到Github-Pages
26+ # 部署到Github-Pages
2727 deploy-github :
2828 name : 部署到Github-Pages
2929 runs-on : ubuntu-latest
7272 id : deployment
7373 uses : actions/deploy-pages@v4
7474
75- # # 部署到vercel平台
76- deploy-vercel :
77- name : 部署到Vercel平台
78- runs-on : ubuntu-latest
79- if : github.repository == '142vip/408CSFamily'
80-
81- steps :
82- - name : Checkout Code
83- uses : actions/checkout@v4
84- with :
85- persist-credentials : false
86- # “最近更新时间” 等 git 日志相关信息,需要拉取全部提交记录
87- fetch-depth : 0
88-
89- # # 注意: 这里的操作时间vercel平台配置的命令拉取下来,执行
90- - name : Pull Vercel Environment Information
91- run : |
92- npx vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
93-
94- # # 执行vercel平台配置的命令
95- - name : Build Project Artifacts
96- run : |
97- npx vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
98-
99- # # dist文件同步到vercel平台
100- - name : Deploy Project Artifacts to Vercel
101- run : |
102- npx vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}
103-
104- # # 版本发布
75+ # 版本发布
10576 release :
10677 name : Github版本发布
10778 runs-on : ubuntu-latest
Original file line number Diff line number Diff line change 2525 "build" : " npx vuepress build docs --clean-temp --clean-cache" ,
2626 "build:proxy" : " NEED_PROXY=true npx vuepress build docs --clean-temp --clean-cache" ,
2727 "build:mark-map" : " ./scripts/mark-map" ,
28- "deploy:vercel" : " vercel --prod" ,
2928 "release" : " npx fa release --vip"
3029 },
3130 "devDependencies" : {
4140 "sass-embedded" : " ^1.79.5" ,
4241 "simple-git-hooks" : " ^2.11.1" ,
4342 "typescript" : " ^5.5.4" ,
44- "vercel" : " ^32.7.2" ,
4543 "vue" : " ^3.5.8" ,
4644 "vuepress" : " ^2.0.0-rc.17" ,
4745 "vuepress-plugin-search-pro" : " ^2.0.0-rc.57" ,
You can’t perform that action at this time.
0 commit comments