forked from OpenHUTB/nn
-
Notifications
You must be signed in to change notification settings - Fork 0
28 lines (26 loc) · 743 Bytes
/
Copy pathmain.yml
File metadata and controls
28 lines (26 loc) · 743 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# 参考:https://github.com/Tiryoh/actions-mkdocs
name: Deploy
on:
push:
branches:
- main
jobs:
build:
name: Deploy docs to GitHub Pages
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Build
uses: OpenHUTB/actions-mkdocs@main
with:
mkdocs_version: 'latest' # option
#mkdocs_version: '1.1' # option
# 安装行内公式渲染的依赖(python-markdown-math)
requirements: 'requirements.txt' # option
configfile: 'mkdocs.yml' # option
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./site