docs📝: update docs #43
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |