Skip to content

Commit f7046a6

Browse files
author
微信公众号:储凡
authored
Merge pull request #117 from mmdapl/fix/vercel
feat: 移除`vercel`模块和流水线同步,采用官方基于`Git`仓库同步策略进行部署
2 parents 9b0955e + 63f3715 commit f7046a6

File tree

3 files changed

+143
-1685
lines changed

3 files changed

+143
-1685
lines changed

.github/workflows/CD.yaml

Lines changed: 2 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ permissions:
2323
id-token: write
2424

2525
jobs:
26-
# # 部署到Github-Pages
26+
# 部署到Github-Pages
2727
deploy-github:
2828
name: 部署到Github-Pages
2929
runs-on: ubuntu-latest
@@ -72,36 +72,7 @@ jobs:
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

package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
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": {
@@ -41,7 +40,6 @@
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",

0 commit comments

Comments
 (0)