-
Notifications
You must be signed in to change notification settings - Fork 6
42 lines (35 loc) · 972 Bytes
/
build_docs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: build_docs
on:
push:
permissions:
contents: write
jobs:
check:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.11"]
name: check ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up CPython ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
id: install-deps
run: |
pip install -U -r requirements.txt
- name: Build Docs
id: build-docs
run: |
python build_docs.py
- name: Commit and push changes
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
git diff --quiet || (git commit -a -m "Build docs")
git push