mirror of
https://github.com/142vip/408CSFamily.git
synced 2026-02-11 22:35:50 +08:00
41 lines
766 B
YAML
41 lines
766 B
YAML
# 构建Docker镜像
|
|
name: Code-CI
|
|
|
|
## 触发条件
|
|
on:
|
|
# 手动触发部署
|
|
workflow_dispatch:
|
|
pull_request:
|
|
branches:
|
|
- 'master'
|
|
- 'next'
|
|
- '!pages/**'
|
|
|
|
jobs:
|
|
Code-CI:
|
|
runs-on: ubuntu-latest
|
|
# if: github.repository == '142vip/408CSFamily'
|
|
permissions:
|
|
actions: read
|
|
pull-requests: read
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Install Node.js
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 14.20.1
|
|
|
|
- name: PNPM Install
|
|
uses: pnpm/action-setup@v2
|
|
with:
|
|
version: 7
|
|
run_install: true
|
|
|
|
- name: Code Eslint Fix
|
|
run: pnpm lintfix
|
|
- name: Build Site
|
|
run: pnpm build
|