Skip to content

docs📝:

docs📝: #53

Workflow file for this run

name: auto-build
on:
push:
branches:
- main
jobs:
docs:
runs-on: ubuntu-latest
env:
NODE_OPTIONS: "--max_old_space_size=40960"
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
persist-credentials: false
- name: Setup Node.js environment
uses: actions/setup-node@v2
with:
node-version: "18.15.0"
- name: Install pnpm
run: npm i pnpm -g
- name: Install & Build
run: pnpm install && pnpm run build
- name: Deploy to GitHub Repo
uses: crazy-max/[email protected]
with:
repo: xinyang424/xinyang424.github.io
target_branch: main
build_dir: src/.vuepress/dist
env:
GH_PAT: ${{ secrets.ACCESS_TOKEN }}