mirror of
https://github.com/142vip/408CSFamily.git
synced 2026-04-05 11:38:27 +08:00
ci: update
This commit is contained in:
8
.github/workflows/code-ci.yml
vendored
8
.github/workflows/code-ci.yml
vendored
@@ -23,14 +23,16 @@ jobs:
|
||||
- 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
|
||||
node-version: 14.20.1
|
||||
run_install: true
|
||||
# 缓存 pnpm 依赖
|
||||
cache: pnpm
|
||||
|
||||
- name: Code Eslint Fix
|
||||
run: pnpm lintfix
|
||||
|
||||
9
.github/workflows/docker-image.yml
vendored
9
.github/workflows/docker-image.yml
vendored
@@ -40,13 +40,16 @@ jobs:
|
||||
echo "-----------Docker Login-----------"
|
||||
docker login --username=${{ env.UserName }} --password=${{ secrets.DOCKER_PASSWORD }} ${{env.REGISTRY}}
|
||||
|
||||
- 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
|
||||
node-version: 14.20.1
|
||||
run_install: true
|
||||
# 缓存 pnpm 依赖
|
||||
cache: pnpm
|
||||
|
||||
- name: Build And Push Docker image
|
||||
run: PROXY_DOMAIN=true pnpm faster-image
|
||||
|
||||
9
.github/workflows/esc-deploy.yml
vendored
9
.github/workflows/esc-deploy.yml
vendored
@@ -31,14 +31,17 @@ jobs:
|
||||
echo "-----------Docker Login-----------"
|
||||
docker login --username=${{ env.UserName }} --password=${{ secrets.DOCKER_PASSWORD }} ${{env.REGISTRY}}
|
||||
|
||||
- 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
|
||||
node-version: 14.20.1
|
||||
run_install: true
|
||||
# 缓存 pnpm 依赖
|
||||
cache: pnpm
|
||||
|
||||
- name: Build And Push Docker image
|
||||
run: pnpm faster-image
|
||||
|
||||
|
||||
17
.github/workflows/gh-deploy.yml
vendored
17
.github/workflows/gh-deploy.yml
vendored
@@ -18,27 +18,24 @@ jobs:
|
||||
# “最近更新时间” 等 git 日志相关信息,需要拉取全部提交记录
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Setup PNPM
|
||||
- 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: Setup Node Version
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
# 选择要使用的 node 版本
|
||||
node-version: 14.20.1
|
||||
# 缓存 pnpm 依赖
|
||||
cache: pnpm
|
||||
|
||||
# 运行构建脚本
|
||||
- name: Build VuePress Site
|
||||
run:
|
||||
PROXY_DOMAIN=true pnpm build
|
||||
|
||||
- name: Deploy to GitHub Page
|
||||
uses: crazy-max/ghaction-github-pages@v2
|
||||
uses: crazy-max/ghaction-github-pages@v3
|
||||
with:
|
||||
target_branch: pages/github
|
||||
build_dir: docs/.vuepress/dist
|
||||
|
||||
Reference in New Issue
Block a user