mirror of
https://github.com/142vip/408CSFamily.git
synced 2026-04-09 21:49:18 +08:00
feat: 新增vercel部署ci
This commit is contained in:
24
.github/workflows/sync-upstream.yml
vendored
24
.github/workflows/sync-upstream.yml
vendored
@@ -1,24 +0,0 @@
|
||||
name: Sync with Upstream
|
||||
|
||||
on:
|
||||
# push:
|
||||
# branches:
|
||||
# - main # 指定触发同步的分支
|
||||
# 手动触发部署
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
sync:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Sync with Upstream
|
||||
run: |
|
||||
git remote add upstream https://github.com/142vip/408CSFamily.git
|
||||
git fetch upstream
|
||||
git checkout main
|
||||
git merge upstream/main
|
||||
git push origin main
|
||||
24
.github/workflows/vercel-deploy.yml
vendored
Normal file
24
.github/workflows/vercel-deploy.yml
vendored
Normal file
@@ -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 }}
|
||||
Reference in New Issue
Block a user