Skip to content

ci: Simplify Vercel deployment workflow configuration #65

ci: Simplify Vercel deployment workflow configuration

ci: Simplify Vercel deployment workflow configuration #65

Workflow file for this run

name: Deploy to Vercel
on:
push:
branches: [main]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# 使用官方的 Vercel Action 替代 CLI 命令
- name: Deploy to Vercel
uses: amondnet/vercel-action@v20
with:
vercel-token: ${{ secrets.VERCEL_TOKEN }}
vercel-org-id: ${{ secrets.VERCEL_ORG_ID }}
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID }}
working-directory: ./