-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (36 loc) · 1.05 KB
/
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
name: docs
on:
workflow_call:
workflow_dispatch:
pull_request:
branches: [ main ]
types: [labeled]
permissions:
contents: write
jobs:
build-docs:
runs-on: ubuntu-latest
if: github.event.label.name == 'docthis'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.10"
- uses: quarto-dev/quarto-actions/setup@v2
with:
version: "1.5.53"
- name: Install dependencies
run: |
python -m pip install .[dev]
- name: Build docs
run: |
make docs
- name: Commit rendered docs
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "chore(docs): render docs"
commit_user_name: "github-actions[bot]"
commit_user_email: "github-actions[bot]@users.noreply.github.com"
commit_author: "github-actions[bot] <github-actions[bot]@users.noreply.github.com>"
file_pattern: "docs/ _inv/ _reference/ _freeze/"
push_options: "--force"