1
0
mirror of https://github.com/142vip/408CSFamily.git synced 2026-02-02 18:20:26 +08:00

feat: 移除vercel模块和流水线同步,采用官方基于Git仓库同步策略进行部署

This commit is contained in:
chufan
2024-10-16 16:36:59 +08:00
parent 798950b529
commit 63f37157d5
3 changed files with 142 additions and 1684 deletions

View File

@@ -23,7 +23,7 @@ permissions:
id-token: write
jobs:
# # 部署到Github-Pages
# 部署到Github-Pages
deploy-github:
name: 部署到Github-Pages
runs-on: ubuntu-latest
@@ -72,36 +72,7 @@ jobs:
id: deployment
uses: actions/deploy-pages@v4
# # 部署到vercel平台
deploy-vercel:
name: 部署到Vercel平台
runs-on: ubuntu-latest
if: github.repository == '142vip/408CSFamily'
steps:
- name: Checkout Code
uses: actions/checkout@v4
with:
persist-credentials: false
# “最近更新时间” 等 git 日志相关信息,需要拉取全部提交记录
fetch-depth: 0
# # 注意: 这里的操作时间vercel平台配置的命令拉取下来执行
- name: Pull Vercel Environment Information
run: |
npx vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
# # 执行vercel平台配置的命令
- name: Build Project Artifacts
run: |
npx vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
# # dist文件同步到vercel平台
- name: Deploy Project Artifacts to Vercel
run: |
npx vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}
# # 版本发布
# 版本发布
release:
name: Github版本发布
runs-on: ubuntu-latest

View File

@@ -25,7 +25,6 @@
"build": "npx vuepress build docs --clean-temp --clean-cache",
"build:proxy": "NEED_PROXY=true npx vuepress build docs --clean-temp --clean-cache",
"build:mark-map": "./scripts/mark-map",
"deploy:vercel": "vercel --prod",
"release": "npx fa release --vip"
},
"devDependencies": {
@@ -41,7 +40,6 @@
"sass-embedded": "^1.79.5",
"simple-git-hooks": "^2.11.1",
"typescript": "^5.5.4",
"vercel": "^32.7.2",
"vue": "^3.5.8",
"vuepress": "^2.0.0-rc.17",
"vuepress-plugin-search-pro": "^2.0.0-rc.57",

1791
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff