Skip to content

Update deploy.yml

Update deploy.yml #16

Workflow file for this run

name: Build and Deploy
on:
push:
branches:
- master
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout ️
uses: actions/[email protected]
- name: lock npm version
uses: actions/setup-node@v3
with:
node-version: 18.14.0
- name: Install and Build
run: |
npm i -g pnpm
pnpm run inits
pnpm run docs:build
env:
NODE_OPTIONS: '--max_old_space_size=4096 --openssl-legacy-provider'
- name: Deploy
uses: JamesIves/[email protected]
with:
BRANCH: gh-pages
FOLDER: docs/.vitepress/dist
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}