Skip to content

feat: 安装依赖

feat: 安装依赖 #74

Workflow file for this run

name: github pages
on:
push:
push:
branches:
- master
# Sequence of patterns matched against refs/tags
tags:
- "*" # Push events to matching any tags
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-22.04
strategy:
matrix:
node-version: [20]
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
with:
version: 8
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: build page
run: pnpm build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: ./dist