We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9e43c09 commit 21d219aCopy full SHA for 21d219a
1 file changed
.github/workflows/gh-pages.yml
@@ -0,0 +1,25 @@
1
+name: github pages
2
+
3
+on:
4
+ push:
5
+ branches:
6
+ - master # default branch
7
8
+jobs:
9
+ deploy:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - name: Checkout
13
+ uses: actions/checkout@v3
14
+ # with:
15
+ # 如果配置 themeConfig.lastUpdated 为 false,则不需要添加该参数以加快检出速度
16
+ # fetch-depth: 0
17
+ - name: Install dependencies
18
+ run: npm install
19
+ - name: Build with dumi
20
+ run: npm run docs:build
21
+ - name: Deploy
22
+ uses: peaceiris/actions-gh-pages@v3
23
+ with:
24
+ github_token: ${{ secrets.GITHUB_TOKEN }}
25
+ publish_dir: ./docs-dist
0 commit comments