-
Notifications
You must be signed in to change notification settings - Fork 6
44 lines (39 loc) · 1.2 KB
/
update_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
43
44
---
name: Update Docs
"on":
push:
branches: [main]
paths:
- docs/**
- mkdocs.yml
workflow_dispatch: null # For manual runs
# Docs: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions
permissions:
# Repository contents, commits, branches, downloads, releases, and merges.
contents: write
env:
COLUMNS: 120
jobs:
docs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-22.04]
python-version: ["3.9"]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # For git-revision-date-localized-plugin
- uses: ./.github/actions/setup
with:
os: ${{ matrix.os }}
python-version: ${{ matrix.python-version }}
- name: Setup Graphviz
uses: ts-graphviz/setup-graphviz@v1
# https://github.com/mkdocs/mkdocs/discussions/2369#discussioncomment-625475
- name: Configure git user
run: |-
git config user.name 'github-actions[bot]'
git config user.email 'github-actions[bot]@users.noreply.github.com'
- name: Build and deploy documentation
run: poetry run calcipy-docs cl.write doc.build doc.deploy