Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 63a3813

Browse files
committed
Add workflow to build docs
Change-Id: I3f5ad6f3832ea56aba72c62f6bd2092288dcb5c9
1 parent 32a17e6 commit 63a3813

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

.github/workflows/build-docs.yaml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Build docs
2+
3+
on:
4+
# run on push in main or rel_* branches excluding changes are only on example folders
5+
push:
6+
branches:
7+
- main
8+
- "rel_*"
9+
# branches used to test the workflow
10+
- "workflow_test_*"
11+
paths-ignore:
12+
- "examples/**"
13+
14+
permissions:
15+
contents: read
16+
17+
jobs:
18+
run-test:
19+
name: build-docs
20+
runs-on: "ubuntu-latest"
21+
22+
steps:
23+
- name: Checkout repo
24+
uses: actions/checkout@v3
25+
26+
- name: Set up python
27+
uses: actions/setup-python@v4
28+
with:
29+
python-version: "3.11"
30+
31+
- name: Install dependencies
32+
run: |
33+
python -m pip install --upgrade pip
34+
pip install --requirement doc/build/requirements.txt
35+
pip list
36+
37+
- name: Build docs
38+
run: |
39+
cd doc/build
40+
make html
41+
42+
- name: Create artifact
43+
run: |
44+
tar czf docs.tgz doc/build/output/html
45+
46+
- name: Upload artifact
47+
uses: actions/upload-artifact@v3
48+
with:
49+
name: docs-archive
50+
path: docs.tgz

0 commit comments

Comments
 (0)