ray-template/.github/workflows/docs-deploy.yaml
2024-05-17 15:33:12 +08:00

39 lines
733 B
YAML

name: ray-template documents deploy
on:
push:
pull_request:
types:
- closed
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Node.js 20.x
uses: actions/setup-node@v3
with:
node-version: 20.x
- uses: pnpm/action-setup@v2
name: Install pnpm
with:
version: 8
run_install: false
- name: Install dependencies
run: pnpm install
- name: Pnpm build
run: pnpm build
- name: Deploy to dist branch
uses: JamesIves/github-pages-deploy-action@4.1.4
with:
branch: dist
folder: dist/production