Skip to content

Commit 78da87d

Browse files
author
milos.colic
committed
Add github actions for docs.
1 parent f873d47 commit 78da87d

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

‎.github/workflows/docs.yml‎

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
with:
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+
with:
25+
github_token: ${{ secrets.GITHUB_TOKEN }}
26+
branch: gh-pages

0 commit comments

Comments
 (0)