Skip to content

Commit

Permalink
feat: 新增vercel部署ci
Browse files Browse the repository at this point in the history
  • Loading branch information
chufan443 authored and chufan committed Sep 4, 2023
1 parent a0370c0 commit bc59fea
Show file tree
Hide file tree
Showing 4 changed files with 964 additions and 1 deletion.
24 changes: 24 additions & 0 deletions .github/workflows/vercel-deploy.yml
@@ -0,0 +1,24 @@
# 自动部署到vercel上
name: Vercel Deploy
on:
push:
branches:
- master
- next
pull_request:
branches:
- master
- next
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ngduc/vercel-deploy-action@master
with:
vercel-cli: vercel
vercel-token: ${{ secrets.VERCEL_TOKEN }}
vercel-org-id: ${{ secrets.VERCEL_ORG_ID}}
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID}}
github-token: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -72,3 +72,4 @@ templete
/docs/.vuepress/.temp/
/docs/.vuepress/.cache/
/.husky/
.vercel
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -51,6 +51,7 @@
"eslint-plugin-vue": "^9.9.0",
"husky": "^8.0.3",
"typescript": "^3.9.10",
"vercel": "^32.1.0",
"vue": "^3.2.47",
"vuepress": "2.0.0-beta.61",
"vuepress-plugin-search-pro": "2.0.0-beta.185",
Expand Down

0 comments on commit bc59fea

Please sign in to comment.