Skip to content

feat: Fix build issue #12

feat: Fix build issue

feat: Fix build issue #12

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
persist-credentials: false # Ensure git push has the correct permissions
submodules: false
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '20.11.0' # Use a version that meets pnpm requirements
- name: Install pnpm
run: npm install -g pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build project
run: |
export NODE_OPTIONS=--openssl-legacy-provider
pnpm run build
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/.vuepress/dist
keep_files: true