-
Notifications
You must be signed in to change notification settings - Fork 2
40 lines (37 loc) · 1.13 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
40
name: docs
on:
workflow_dispatch:
pull_request:
branches: [ main ]
types: [labeled]
permissions:
contents: write
jobs:
build-docs:
if: github.event.label.name == 'testthis' || github.event.label.name == 'docthis'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v2
with:
python-version: "3.10"
- uses: quarto-dev/quarto-actions/setup@v2
with:
version: "1.4.176"
- name: Install dependencies
run: |
python -m pip install .[dev]
- name: Build docs
run: |
make setup-docs
- name: Commit rendered docs
uses: stefanzweifel/git-auto-commit-action@v4
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>"
- uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs