Skip to content

chore(memo): fix cfp #59

chore(memo): fix cfp

chore(memo): fix cfp #59

Workflow file for this run

name: Deploy Memo
on:
push:
branches: main
paths: "memo/**"
workflow_dispatch:
jobs:
deploy-gh-pages:
name: Deploy memo to gh pages
runs-on: ubuntu-latest
defaults:
run:
working-directory: memo
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 8
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18
cache: pnpm
cache-dependency-path: memo/pnpm-lock.yaml
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build project
env:
NODE_OPTIONS: --max_old_space_size=8192
run: pnpm run build
- name: Deploy site
uses: JamesIves/github-pages-deploy-action@v4
with:
repository-name: yorunning/memo
branch: gh-pages
folder: memo/src/.vuepress/dist
token: ${{ secrets.ACCESS_TOKEN }}
single-commit: true