Skip to content

Commit d55d7e8

Browse files
authored
Create docs.yml
try to build docs automatically by actions
1 parent a1c791c commit d55d7e8

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/docs.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# docs.yaml
2+
name: Auto update docs for master branch
3+
on:
4+
push:
5+
branches:
6+
- master
7+
jobs:
8+
build-and-deploy:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@master
13+
14+
- name: Build and Deploy
15+
uses: JamesIves/github-pages-deploy-action@master
16+
env:
17+
ACCESS_TOKEN: ${{ secrets.BUILD_DOCS_ACCESS_TOKEN }}
18+
BRANCH: gh-pages
19+
FOLDER: html-site
20+
BUILD_SCRIPT: |
21+
apt-get install python3-pip -y &&
22+
pip3 install sphinx &&
23+
pip3 install sphinxcontrib-napoleon &&
24+
pip3 install m2r &&
25+
cd docs && make html && mv _build/html/ ../html-site && cd ..

0 commit comments

Comments
 (0)