-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (37 loc) · 1.02 KB
/
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
name: Documentation
on:
push:
branches:
- main
paths:
- "docs/**"
- ".github/workflows/docs.yml"
jobs:
mkdocs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.9
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Load cached venv
id: cached-poetry-dependencies
uses: actions/cache@v3
with:
path: |
~/.cache/pypoetry
key: poetry-${{ runner.os }}-${{ hashFiles('poetry.lock') }}
- name: Installation
run: |
pip install poetry
poetry install --without dev
- name: Create docs
run: poetry run mkdocs gh-deploy --force
- name: Build chimefrb/handbook
uses: peter-evans/repository-dispatch@v2
with:
token: ${{ secrets.BUILD_HANDBOOK_TOKEN }}
repository: chimefrb/handbook
event-type: build-handbook
client-payload: '{"source": "chimefrb/datatrail-cli"}'