Skip to content

Commit

Permalink
ci: auto deploy-doc
Browse files Browse the repository at this point in the history
  • Loading branch information
zzxming committed Oct 12, 2024
1 parent 5362679 commit f5a2183
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/deploy-doc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: GitHub Pages
on:
push:
branches:
- master
workflow_dispatch: {}

permissions:
contents: write

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Install pnpm
uses: pnpm/action-setup@v4

- name: Set node
uses: actions/setup-node@v4
with:
node-version: 20

- name: Install deps
run: pnpm install

- name: Build
run: pnpm build

- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: ./docs

0 comments on commit f5a2183

Please sign in to comment.