Skip to content

发布文档到github pages #6

发布文档到github pages

发布文档到github pages #6

Workflow file for this run

name: 发布文档到github pages
on:
push:
tags:
- 'v*'
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: 获取源码 🛎️
uses: actions/[email protected]
- name: 安装依赖和构建 🔧
run: |
npm i pnpm -g
pnpm install
pnpm run docs:build
- name: 部署 🚀
uses: JamesIves/[email protected]
with:
branch: gh-pages # The branch the action should deploy to.
folder: docs/.vitepress/dist # The folder the action should deploy.