1
0
mirror of https://github.com/142vip/408CSFamily.git synced 2026-04-05 11:38:27 +08:00
Files
408CSFamily/.github/workflows/vercel-deploy.yml
喜欢芝士的妹妹 9febb9fb32 feat: update ci
2023-09-02 00:57:37 +08:00

29 lines
687 B
YAML

# 自动部署到vercel上
name: Vercel Deploy
on:
push:
branches:
- master
- next
# pull_request:
# branches:
# - master
# - next
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v3
with:
# “最近更新时间” 等 git 日志相关信息,需要拉取全部提交记录
fetch-depth: 0
- name: sync 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}}