Skip to content

Commit 06b46c7

Browse files
committed
feat: use latest github actions
1 parent e04a048 commit 06b46c7

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

.github/workflows/gh-pages.yml

+12-4
Original file line numberDiff line numberDiff line change
@@ -11,29 +11,37 @@ jobs:
1111
concurrency:
1212
group: ${{ github.workflow }}-${{ github.ref }}
1313
steps:
14-
- uses: actions/checkout@v2
14+
- uses: actions/checkout@v4
1515

16-
- uses: jontze/action-mdbook@v1
16+
- uses: jontze/action-mdbook@v3
1717
with:
1818
token: ${{secrets.GITHUB_TOKEN}}
1919
use-linkcheck: true
20-
use-mermaid: false
20+
use-mermaid: true
2121
use-toc: true
2222
use-opengh: true
23+
use-admonish: true
24+
use-katex: true
2325
- name: Show mdbook version
2426
run: mdbook --version
2527
- name: Show linkchecker version
2628
run: mdbook-linkcheck --version
29+
- name: Show mermaid version
30+
run: mdbook-mermaid --version
2731
- name: Show toc version
2832
run: mdbook-toc --version
2933
- name: Show open-on-gh version
3034
run: mdbook-open-on-gh --version
35+
- name: Show admonish version
36+
run: mdbook-admonish --version
37+
- name: Show katex version
38+
run: mdbook-katex --version
3139

3240
- name: Build
3341
run: mdbook build
3442

3543
- name: Deploy
36-
uses: peaceiris/actions-gh-pages@v3
44+
uses: peaceiris/actions-gh-pages@v4
3745
if: ${{ github.ref == 'refs/heads/master' }}
3846
with:
3947
github_token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)