Skip to content

Commit 764823d

Browse files
authored
Add documentation builder action
1 parent 08efeda commit 764823d

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

.github/actions/docs.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Documentation
2+
on:
3+
push:
4+
branches:
5+
- dev
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/setup-python@v2
11+
- uses: actions/checkout@master
12+
with:
13+
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo
14+
- name: Build and Commit
15+
uses: sphinx-notes/pages@v2
16+
- name: Push changes
17+
uses: ad-m/github-push-action@master
18+
with:
19+
github_token: ${{ secrets.GITHUB_TOKEN }}
20+
branch: gh-pages
21+
documentation_path: './docs'

0 commit comments

Comments
 (0)