1
0
mirror of https://github.com/142vip/408CSFamily.git synced 2026-04-05 11:38:27 +08:00

ci: update

This commit is contained in:
妹妹下雨回不去
2023-04-03 22:37:07 +08:00
parent ec137a8eec
commit 6987fa667d
4 changed files with 24 additions and 19 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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