Skip to content

Commit b61fdd6

Browse files
committed
github action to deploy mkdocs to github pages
1 parent b17cb01 commit b61fdd6

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

Diff for: .github/workflows/ci.yml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: ci
2+
on:
3+
push:
4+
branches:
5+
- master
6+
- main
7+
- mkdocs
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- uses: actions/setup-python@v2
14+
with:
15+
python-version: 3.x
16+
- run: pip install mkdocs-material
17+
- run: sed -i '/<!-- MKDOCS IGNORE -->/,/<!-- MKDOCS IGNORE -->/d' README.md
18+
- run: mkdocs gh-deploy --force

0 commit comments

Comments
 (0)