1 parent f873d47 commit 78da87dCopy full SHA for 78da87d
1 file changed
.github/workflows/docs.yml
@@ -0,0 +1,26 @@
1
+name: docs
2
+on:
3
+ push:
4
+ branches:
5
+ - main
6
+jobs:
7
+ build:
8
+ runs-on: ubuntu-latest
9
+ steps:
10
+ - name: install pandoc
11
+ run: sudo apt-get install pandoc
12
+ - uses: actions/setup-python@v2
13
+ - uses: actions/checkout@v2
14
+ with:
15
+ ref: main
16
+ fetch-depth: 0 # otherwise, you will failed to push refs to dest repo
17
+ - name: Build and Commit
18
+ uses: sphinx-notes/pages@v2
19
20
+ documentation_path: docs/source
21
+ requirements_path: docs/docs-requirements.txt
22
+ - name: Push changes
23
+ uses: ad-m/github-push-action@master
24
25
+ github_token: ${{ secrets.GITHUB_TOKEN }}
26
+ branch: gh-pages
0 commit comments