Skip to content

Commit e302226

Browse files
committed
Build docs in CI
1 parent dfb3ed4 commit e302226

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/docs.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Build Docs
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches: [main]
7+
tags:
8+
- '*'
9+
10+
jobs:
11+
build-deploy-docs:
12+
name: Docs
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Cancel Previous Runs
16+
uses: styfle/cancel-workflow-action@0.12.1
17+
with:
18+
access_token: ${{ github.token }}
19+
20+
- uses: actions/checkout@v3
21+
22+
- uses: actions/setup-python@v4
23+
with:
24+
python-version: "3.11"
25+
cache: 'pip'
26+
27+
- name: Create venv and install deps
28+
run: |
29+
pip install --upgrade pip wheel
30+
pip install -r docs/requirements.txt
31+
32+
- name: Build Docs
33+
run: |
34+
make -C docs

0 commit comments

Comments
 (0)