Skip to content

Commit

Permalink
ci: github pages doc
Browse files Browse the repository at this point in the history
  • Loading branch information
liangskyli committed Sep 11, 2023
1 parent badecbd commit 1b3d33d
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/doc.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: doc
name: github pages doc

env:
NODE_OPTIONS: --max-old-space-size=6144
Expand All @@ -11,6 +11,11 @@ on:
- 'docs/**'
workflow_dispatch:

permissions:
contents: write
# pages: write
# id-token: write

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
Expand Down Expand Up @@ -54,4 +59,10 @@ jobs:
- name: Install dependencies
run: pnpm i

- run: pnpm doc:build
- run: pnpm docs:build

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs-dist

0 comments on commit 1b3d33d

Please sign in to comment.