Skip to content

Commit

Permalink
test: workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
liangskyli committed Sep 11, 2023
1 parent a7c4943 commit ca5ba45
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .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 @@ -55,3 +60,9 @@ jobs:
run: pnpm i

- 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 ca5ba45

Please sign in to comment.