mirror of
https://github.com/142vip/408CSFamily.git
synced 2026-04-09 13:38:36 +08:00
feat: update ci
This commit is contained in:
7
.github/workflows/code-ci.yml
vendored
7
.github/workflows/code-ci.yml
vendored
@@ -20,8 +20,11 @@ jobs:
|
||||
pull-requests: read
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
- name: checkout code
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
# “最近更新时间” 等 git 日志相关信息,需要拉取全部提交记录
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Install Node.js
|
||||
uses: actions/setup-node@v3
|
||||
@@ -34,7 +37,7 @@ jobs:
|
||||
version: 7
|
||||
run_install: true
|
||||
|
||||
- name: Code Eslint Fix
|
||||
- name: Code ESlint Fix
|
||||
run: pnpm lintfix
|
||||
- name: Build Site
|
||||
run: pnpm build
|
||||
|
||||
5
.github/workflows/docker-image.yml
vendored
5
.github/workflows/docker-image.yml
vendored
@@ -31,8 +31,11 @@ jobs:
|
||||
pull-requests: read
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
- name: checkout code
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
# “最近更新时间” 等 git 日志相关信息,需要拉取全部提交记录
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Login Docker
|
||||
run: |
|
||||
|
||||
5
.github/workflows/esc-deploy.yml
vendored
5
.github/workflows/esc-deploy.yml
vendored
@@ -22,8 +22,11 @@ jobs:
|
||||
pull-requests: read
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
- name: checkout code
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
# “最近更新时间” 等 git 日志相关信息,需要拉取全部提交记录
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Login Docker
|
||||
run: |
|
||||
|
||||
3
.github/workflows/gh-deploy.yml
vendored
3
.github/workflows/gh-deploy.yml
vendored
@@ -13,7 +13,8 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: checkout code
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
# “最近更新时间” 等 git 日志相关信息,需要拉取全部提交记录
|
||||
fetch-depth: 0
|
||||
|
||||
13
.github/workflows/vercel-deploy.yml
vendored
13
.github/workflows/vercel-deploy.yml
vendored
@@ -5,17 +5,20 @@ on:
|
||||
branches:
|
||||
- master
|
||||
- next
|
||||
pull_request:
|
||||
branches:
|
||||
- master
|
||||
- next
|
||||
# pull_request:
|
||||
# branches:
|
||||
# - master
|
||||
# - next
|
||||
workflow_dispatch:
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: checkout code
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
# “最近更新时间” 等 git 日志相关信息,需要拉取全部提交记录
|
||||
fetch-depth: 0
|
||||
|
||||
- name: sync to vercel
|
||||
uses: amondnet/vercel-action@v20
|
||||
|
||||
Reference in New Issue
Block a user