Skip to content

Commit 4a500ad

Browse files
committed
Automatically deploy docs into docs branch
Use github actions to automatically build docs on each push, move built docs into docs branch and commit them
1 parent 81229d9 commit 4a500ad

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/build-docs.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: deploy-docs
2+
on:
3+
push:
4+
branches:
5+
- cppflow2
6+
jobs:
7+
check-bats-version:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
with:
12+
persist-credentials: false
13+
- name: Set up Python 3.7
14+
uses: actions/setup-python@v1
15+
with:
16+
python-version: 3.7
17+
- name: Install dependencies
18+
run: |
19+
sudo apt install doxygen
20+
python -m pip install --upgrade pip
21+
pip install sphinx breathe sphinx_rtd_theme
22+
- name: Build Documentation
23+
run: |
24+
cd docs
25+
make html
26+
27+
- name: Deploy
28+
uses: JamesIves/[email protected]
29+
with:
30+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31+
BRANCH: docs
32+
FOLDER: docs/build/html
33+
CLEAN: true

0 commit comments

Comments
 (0)