Skip to content

Commit ad4eb5c

Browse files
author
Xianpeng Shen
committed
Create mkdocs-deploy.yml
1 parent f788942 commit ad4eb5c

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: MkDocs Deploy
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
paths:
7+
- 'docs/**'
8+
workflow_dispatch:
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
- uses: actions/setup-python@v2
16+
with:
17+
python-version: 3.x
18+
- run: pip install -r docs/requirements.txt
19+
- run: |
20+
git config user.name 'github-actions'
21+
git config user.email '41898282+github-actions[bot]@users.noreply.github.com'
22+
mkdocs gh-deploy --force

0 commit comments

Comments
 (0)