Skip to content

Commit

Permalink
feat: 移除vercel模块和流水线同步,采用官方基于Git仓库同步策略进行部署 (#179)
Browse files Browse the repository at this point in the history
* feat: 移除`vercel`模块和流水线同步,采用官方基于`Git`仓库同步策略进行部署

* chore: update

---------

Co-authored-by: chufan <[email protected]>
  • Loading branch information
微信公众号:储凡 and mmdapl authored Oct 16, 2024
1 parent b180f0c commit 38ffb58
Show file tree
Hide file tree
Showing 3 changed files with 161 additions and 1,662 deletions.
29 changes: 0 additions & 29 deletions .github/workflows/CD.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,35 +73,6 @@ jobs:
id: deployment
uses: actions/deploy-pages@v4

# 部署到vercel平台
# deploy-vercel:
# name: "部署到Vercel平台"
# needs: install-init
# runs-on: ubuntu-latest
# if: github.repository == '142vip/JavaScriptCollection'
# steps:
# - name: Checkout Code
# uses: actions/checkout@v3
# with:
# fetch-depth: 0
#
# - name: Restore Dependencies From Cache
# uses: actions/cache@v3
# with:
# path: |
# node_modules
# key: ${{ runner.os }}-node_modules-${{ hashFiles('**/pnpm-lock.yaml') }}
#
# - name: Pull Vercel Environment Information
# run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
#
# ## 注意:安装pnpm
# - name: Build Project Artifacts
# run: npm i pnpm@7 -g && vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
#
# - name: Deploy Project Artifacts to Vercel
# run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}

# 版本发布
release:
name: 创建Github发布
Expand Down
3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
"dev": "vuepress dev docs",
"build": "vuepress build docs --clean-temp --clean-cache",
"build:proxy": "NEED_PROXY=true vuepress build docs --clean-temp --clean-cache",
"deploy:vercel": "npx vercel --prod",
"release": "npx fa release --vip"
},
"devDependencies": {
Expand All @@ -33,13 +32,11 @@
"@142vip/vuepress": "^0.0.1-alpha.5",
"@vue/repl": "^4.4.2",
"@vuepress/bundler-vite": "^2.0.0-rc.17",
"eslint": "8.55.0",
"mermaid": "^11.3.0",
"only-allow": "^1.2.1",
"sass-embedded": "^1.79.4",
"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",
Expand Down
Loading

0 comments on commit 38ffb58

Please sign in to comment.